diff --git a/apps/web/src/oj/rank/list.vue b/apps/web/src/oj/rank/list.vue index bbfad61..b69e464 100644 --- a/apps/web/src/oj/rank/list.vue +++ b/apps/web/src/oj/rank/list.vue @@ -317,11 +317,13 @@ const subOptions = computed( durationFromValue(LONG_DURATION_OPTIONS[1]!.value)!, ) +// 周榜占的是三栏里的一栏,列头不再重复「本周」(卡片标题已经写着), +// 宽度也压到 1280 那一档能整张放下,不出横向滚动条 const weeklyColumns: DataTableColumn[] = [ { title: renderTableTitle("排名", "streamline-emojis:flexed-biceps-1"), key: "rank", - width: 80, + width: 70, align: "center", // rank 是服务端给的周榜名次,不是行号 —— 换算回 Index 要的 0 基下标 render: (row) => h(Index, { index: row.rank - 1, page: 1, limit: 10 }), @@ -332,7 +334,8 @@ const weeklyColumns: DataTableColumn[] = [ "streamline-emojis:smiling-face-with-sunglasses", ), key: "username", - minWidth: 160, + minWidth: 120, + ellipsis: { tooltip: true }, render: (row) => h( NButton, @@ -345,15 +348,15 @@ const weeklyColumns: DataTableColumn[] = [ ), }, { - title: renderTableTitle("本周新解决", "fluent-emoji:party-popper"), + title: renderTableTitle("新解决", "fluent-emoji:party-popper"), key: "solvedCount", - width: 120, + width: 100, align: "center", }, { - title: renderTableTitle("本周提交", "streamline-emojis:rocket"), + title: renderTableTitle("提交", "streamline-emojis:rocket"), key: "submissionCount", - width: 110, + width: 90, align: "center", }, ] @@ -622,92 +625,108 @@ watch( - - - - - - -