File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,23 @@ friends.sort(() => Math.random() - 0.5);
5252 }
5353 #cards {
5454 display: grid;
55- grid-template-columns: repeat(2, 300px ); /* 每张卡片固定宽度 */
55+ grid-template-columns: repeat(2, 350px ); /* 每张卡片固定宽度 */
5656 justify-content: center; /* 整体网格居中 */
57- gap: 20px ;
57+ gap: 10px ;
5858 }
5959 @media (max-width: 600px) {
6060 #cards {
6161 grid-template-columns: 1fr; /* 在小屏幕上改为单列 */
6262 width: 100%;
6363 }
6464 }
65+ .card .left img {
66+ width: 96px;
67+ height: 96px;
68+ border-radius: 50%;
69+ margin-top: 0;
70+ margin-bottom: 0;
71+ }
6572
6673 .card {
6774 text-decoration: none; /* 去除下划线 */
@@ -94,6 +101,13 @@ friends.sort(() => Math.random() - 0.5);
94101 /* background: rgba(244, 243, 246, 0.4); */
95102 }
96103
104+ .left {
105+ flex: 0 0 100px
106+ }
107+ .right {
108+ flex: 1;
109+ }
110+
97111 .name {
98112 font-size: 1.2rem;
99113 white-space: nowrap;
@@ -111,8 +125,5 @@ friends.sort(() => Math.random() - 0.5);
111125 text-overflow: ellipsis; /* 超出显示省略号 */
112126 width: 100%; /* 超出显示省略必须有明确的宽度 */
113127 }
114-
115- img {
116- border-radius: 90px;
117- }
128+
118129</style >
You can’t perform that action at this time.
0 commit comments