fix(提交列表): 筛选栏折成两行时「统计」单独掉下去会跑到最左边
Deploy / deploy (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-19 21:41:47 +08:00
1 parent 0f75fd1bd0
commit 8bd3d998ae
1 file changed
+7
+7
View File
@@ -708,6 +708,7 @@ function dayBreak(index: number) {
<!-- 老师只有「统计」(今日统计并进去了);学生看不到统计,仍是「今日统计」 -->
<n-button
v-if="teacher && route.name === 'submissions'"
class="stats-btn"
quaternary
title="统计:这节课、今天,或者回头看以前的课"
@click="openStatistics()"
@@ -717,6 +718,7 @@ function dayBreak(index: number) {
</n-button>
<n-button
v-else-if="route.name === 'submissions' && !flowMode"
class="stats-btn"
quaternary
:title="`今日统计:今天全站 ${todayCount} 条`"
@click="toggleTodayPanel(true)"
@@ -1164,6 +1166,11 @@ function dayBreak(index: number) {
flex-shrink: 0;
}
/* 「统计」单独折到第二行时,占位的 spacer 留在第一行,它自己靠右 */
.stats-btn {
margin-left: auto;
}
.mobile-filters {
padding: 0 14px;
}