Skip to content

Commit 3b2874b

Browse files
committed
refactor: resolve steam-bell-92#341 - eliminate modal scrollbars and fix mobile navbar layout
1 parent b0d1efa commit 3b2874b

2 files changed

Lines changed: 82 additions & 31 deletions

File tree

web-app/css/styles.css

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3189,16 +3189,25 @@ body {
31893189
}
31903190

31913191
.hero-features {
3192-
flex-direction: column;
3193-
align-items: flex-start;
3194-
gap: 0.55rem;
3192+
flex-direction: row;
3193+
flex-wrap: nowrap;
3194+
overflow-x: auto;
3195+
-webkit-overflow-scrolling: touch;
3196+
scrollbar-width: none;
3197+
width: 100%;
3198+
justify-content: flex-start;
3199+
gap: 0.6rem;
31953200
margin-bottom: 1.5rem;
31963201
}
31973202

3203+
.hero-features::-webkit-scrollbar {
3204+
display: none;
3205+
}
3206+
31983207
.feature-badge {
3199-
width: auto;
3200-
justify-content: flex-start;
3201-
padding: 0.15rem 0 0.35rem;
3208+
flex-shrink: 0;
3209+
padding: 0.5rem 0.9rem;
3210+
font-size: 0.85rem;
32023211
}
32033212

32043213
.btn-explore {

web-app/index.html

Lines changed: 67 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,72 @@
609609

610610
@media (max-width: 768px) {
611611
.navbar { padding: 10px 8px; }
612-
.nav-island { height: 64px; padding: 0 16px; border-radius: 16px; }
613-
.mobile-menu-toggle { display: flex; z-index: 1100; }
612+
.nav-island { height: auto; padding: 0.8rem 1.15rem; border-radius: 20px; }
613+
614+
.nav-wrapper {
615+
flex-wrap: wrap;
616+
justify-content: space-between;
617+
border-radius: 28px;
618+
padding: 0.8rem 1.2rem;
619+
}
620+
621+
.navbar-brand {
622+
order: 1;
623+
}
624+
625+
.nav-controls {
626+
order: 2;
627+
position: static;
628+
width: auto;
629+
height: auto;
630+
background: transparent;
631+
border: none;
632+
padding: 0;
633+
flex-direction: row;
634+
justify-content: flex-end;
635+
gap: 10px;
636+
z-index: auto;
637+
transition: none;
638+
}
639+
[data-theme="light"] .nav-controls {
640+
background: transparent;
641+
border: none;
642+
}
643+
644+
.sound-toggle, .theme-toggle {
645+
width: 42px;
646+
height: 42px;
647+
border-radius: 12px;
648+
}
649+
650+
.container1 {
651+
order: 3;
652+
width: 100%;
653+
min-width: 0;
654+
margin-top: 0.5rem;
655+
}
656+
657+
.hero-features {
658+
display: flex;
659+
flex-direction: row;
660+
flex-wrap: nowrap;
661+
overflow-x: auto;
662+
-webkit-overflow-scrolling: touch;
663+
scrollbar-width: none;
664+
width: 100%;
665+
justify-content: flex-start;
666+
gap: 0.6rem;
667+
padding-bottom: 4px;
668+
margin-bottom: 0;
669+
}
670+
.hero-features::-webkit-scrollbar {
671+
display: none;
672+
}
673+
.hero-features .feature-badge {
674+
flex-shrink: 0;
675+
padding: 0.5rem 0.9rem;
676+
font-size: 0.85rem;
677+
}
614678

615679
.search-box {
616680
position: absolute;
@@ -627,29 +691,6 @@
627691
background: #ffffff;
628692
border-color: rgba(0,0,0,0.08);
629693
}
630-
631-
.nav-controls {
632-
position: fixed;
633-
top: 0;
634-
right: -100%;
635-
width: 260px;
636-
height: 100vh;
637-
background: #071227;
638-
border-left: 1px solid rgba(255, 255, 255, 0.08);
639-
flex-direction: column;
640-
justify-content: center;
641-
gap: 20px;
642-
padding: 2rem;
643-
z-index: 1050;
644-
transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
645-
}
646-
[data-theme="light"] .nav-controls {
647-
background: #ffffff;
648-
border-left: 1px solid rgba(0,0,0,0.06);
649-
}
650-
651-
.nav-controls.mobile-active { right: 0; }
652-
.sound-toggle, .theme-toggle { width: 50px; height: 50px; border-radius: 14px; }
653694
}
654695

655696
/* ── Reduced-motion overrides for playground ────────────────── */
@@ -859,6 +900,7 @@
859900
</button>
860901
</div>
861902

903+
</div>
862904
</nav>
863905
<!-- CENTER SEARCH -->
864906
<div class="search-box-container">

0 commit comments

Comments
 (0)