diff --git a/Cargo.lock b/Cargo.lock index 9f45b00..7be172b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3255,7 +3255,7 @@ dependencies = [ [[package]] name = "web-petting" -version = "0.1.7" +version = "0.1.8" dependencies = [ "chrono", "chrono-tz", diff --git a/templates/admin/layout.html b/templates/admin/layout.html index 51fdb25..3346681 100644 --- a/templates/admin/layout.html +++ b/templates/admin/layout.html @@ -26,15 +26,24 @@ position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid #e8e8e8; display: flex; height: 3.5rem; + overflow-x: auto; -webkit-overflow-scrolling: touch; + scrollbar-width: none; } + .bottom-tabs::-webkit-scrollbar { display: none; } .bottom-tabs a { - flex: 1; display: flex; flex-direction: column; align-items: center; + flex: 0 0 auto; min-width: 3.2rem; padding: 0 0.45rem; + display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #999; - font-size: 0.65rem; font-weight: 600; gap: 0.15rem; - transition: color 0.15s; + font-size: 0.6rem; font-weight: 600; gap: 0.1rem; + transition: color 0.15s; white-space: nowrap; } .bottom-tabs a .tab-icon { font-size: 1.25rem; line-height: 1; } + .bottom-tabs a .tab-label { display: block; } .bottom-tabs a.is-active { color: var(--accent); } + @media (max-width: 400px) { + .bottom-tabs a .tab-label { display: none; } + .bottom-tabs a { min-width: 2.8rem; padding: 0 0.3rem; } + } /* ── Desktop: hide bottom tabs, show top nav ── */ .desktop-nav { display: none; } @@ -135,28 +144,28 @@