style: 右对齐 Admin 底栏提示 (#65)
This commit is contained in:
+9
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user