style: 右对齐 Admin 底栏提示 (#65)

This commit is contained in:
chengma
2026-08-09 22:05:11 +08:00
parent 95df15747a
commit e9a190eed7
3 changed files with 16 additions and 6 deletions
+9 -2
View File
@@ -18,9 +18,16 @@ func TestPaginationCSS_桌面右对齐且窄窗口不遮挡内容(t *testing.T)
t.Fatal(err)
}
css := string(content)
statusbarRightAligned := `.statusbar {
position: fixed;
left: 0; right: 0; bottom: 0;
display: flex;
align-items: center;
justify-content: flex-end;`
for _, want := range []string{
"margin-left: auto", "flex: 0 0 auto", "@media (max-width: 760px)",
"position: static", "justify-content: flex-end",
statusbarRightAligned, "flex: 0 1 auto", "text-align: right",
"margin-left: 0", "flex: 0 0 auto", "@media (max-width: 760px)",
"position: static", ".statusbar > span:first-child { flex-basis: 100%; }",
} {
if !strings.Contains(css, want) {
t.Fatalf("分页布局 CSS 缺少 %q", want)