
@@ -233,6 +241,12 @@ const startChat = () => {
margin-right: 0;
padding: 20px;
width: 100%;
+ /* 当元素数量为奇数时,让最后一个元素居中 */
+ & > *:last-child:nth-child(2n + 1) {
+ grid-column: 1 / span 2;
+ justify-self: center;
+ width: calc(50% - 10px); /* 宽度为单列宽度,减去gap的一半 */
+ }
}
.info-column {