Skip to content

Commit b981d52

Browse files
committed
update style
1 parent 3b3478f commit b981d52

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

src/components/CheckDays/Rank/index.vue

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
v-loading="isLoading.single"
99
>
1010
<Card class="card" :author="item" />
11-
<span class="time">{{ new Date(item.timeStamp).toLocaleString() }}</span>
11+
<span class="time">{{
12+
new Date(item.timeStamp).toLocaleString()
13+
}}</span>
1214
<span class="th"
1315
>{{ index + 1 }}&nbsp;<sup>{{ thString(index + 1) }}</sup></span
1416
>
@@ -53,18 +55,29 @@ export default {
5355
this.$conf.getHost().then((h) => {
5456
this.$conf
5557
.getUserDetailById({
56-
host: this.$conf.getHttpString(h.host),
58+
host: this.$conf.getHttpString(
59+
h.host
60+
),
5761
id: element.userid,
5862
})
5963
.then((data) => {
60-
const { nickname, avatar, introduce } = data.data[0]
64+
const {
65+
nickname,
66+
avatar,
67+
introduce,
68+
} = data.data[0]
6169
this.rankers.push({
6270
nickname,
6371
avatar,
6472
introduce,
65-
timeStamp: Number(element.timeStamp),
73+
timeStamp: Number(
74+
element.timeStamp
75+
),
6676
})
67-
this.rankers.sort((a, b) => a.timeStamp - b.timeStamp)
77+
this.rankers.sort(
78+
(a, b) =>
79+
a.timeStamp - b.timeStamp
80+
)
6881
this.isLoading = false
6982
})
7083
})
@@ -94,8 +107,11 @@ export default {
94107
}
95108
96109
.title {
97-
@apply sticky inline-block w-full h-full top-0 px-4 py-4 text-lg font-bold text-left font-mono;
110+
@apply sticky inline-block w-full h-full top-0 py-4 text-lg text-left border-b-2
111+
border-gray-200 dark:border-gray-600;
98112
z-index: 2001;
113+
114+
font-family: "HanSerif";
99115
}
100116
.mainContainer {
101117
@apply relative py-4 my-2 max-w-xs;

src/components/CheckDays/index.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,15 @@ export default {
251251
}
252252
253253
.title {
254-
@apply sticky inline-block w-full h-full top-0 px-4 py-4 text-lg font-extralight text-left border-2 rounded-t-sm
254+
@apply sticky inline-block w-full h-full top-0 py-4 text-lg font-extralight text-left border-b-2
255255
border-gray-200 dark:border-gray-600;
256256
z-index: 2001;
257257
258258
font-family: "HanSerif";
259259
}
260260
261261
.checkDays {
262-
@apply flex flex-wrap justify-center text-left py-4 border-2 border-t-0
263-
border-gray-200 dark:border-gray-600;
262+
@apply flex flex-wrap justify-center text-left py-4;
264263
}
265264
266265
.checkDays span.notSignSpan {

0 commit comments

Comments
 (0)