From 10c38171a0a4cd9e6f7b7606e59249bf989f2527 Mon Sep 17 00:00:00 2001 From: thanglequoc Date: Thu, 12 Feb 2026 10:56:16 +0700 Subject: [PATCH] Fix mobile menu to fit content instead of covering full screen --- docs/_sass/_navbar.scss | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/_sass/_navbar.scss b/docs/_sass/_navbar.scss index a41ccf1..09f02d0 100644 --- a/docs/_sass/_navbar.scss +++ b/docs/_sass/_navbar.scss @@ -65,19 +65,17 @@ &.is-open { display: flex; flex-direction: column; - position: fixed; + position: absolute; top: var(--navbar-height); left: 0; right: 0; - bottom: 0; background: var(--color-bg); - backdrop-filter: none; - padding: $space-2xl; - gap: $space-xl; + border-bottom: 1px solid var(--color-border); + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); + padding: $space-lg $space-2xl; + gap: $space-md; z-index: $z-navbar; - animation: fadeIn 0.2s ease; - overflow-y: auto; - -webkit-overflow-scrolling: touch; + animation: slideDown 0.2s ease; } } }