From 58df6c5268b2612893375597026051e8a9d66e83 Mon Sep 17 00:00:00 2001 From: canglan Date: Sun, 12 Jul 2026 02:44:32 +0800 Subject: [PATCH] fix: flexbox body layout for proper sticky footer, no scrollbar on public pages --- public/css/style.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index 069b2cf..973a6b5 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -20,8 +20,8 @@ *{margin:0;padding:0;box-sizing:border-box} body{ font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans SC',sans-serif; - background:var(--g1);color:var(--g8);line-height:1.6;min-height:100vh; - -webkit-font-smoothing:antialiased; + background:var(--g1);color:var(--g8);line-height:1.6; + -webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh; } .hidden{display:none!important} @@ -306,7 +306,7 @@ tbody tr:last-child td{border-bottom:none} .footer-inner{max-width:1280px;margin:0 auto;display:flex;justify-content:center;gap:28px;flex-wrap:wrap} .footer-inner a{color:var(--g4);text-decoration:none;transition:color .2s} .footer-inner a:hover{color:white} -#app{min-height:100vh;display:flex;flex-direction:column} +#app{flex:1;display:flex;flex-direction:column;min-height:0} #public-page,#main-layout{flex:1} /* ===== Install Page ===== */