Skip to content

Commit b73b2b7

Browse files
Merge pull request steam-bell-92#1307 from anujsharma8d/fix/sidebar-collapse
fix: sidebar collapse not working
2 parents ccec9e6 + f1a364b commit b73b2b7

2 files changed

Lines changed: 30 additions & 10 deletions

File tree

web-app/css/styles.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,19 @@ body.sidebar-active .sidebar-dock {
428428
padding-top: 16px;
429429
border-top: 1px solid var(--border);
430430
}
431+
.sidebar-main-controls{
432+
display: flex;
433+
justify-content: center;
434+
align-items: center;
435+
gap: 20px;
436+
}
431437

432438
.sidebar-controls {
433439
display: flex;
434440
align-items: center;
435441
gap: 8px;
436442
width: 100%;
443+
justify-content: space-around;
437444
}
438445

439446
.sidebar-controls .sound-toggle,
@@ -5380,6 +5387,8 @@ button:focus-visible,
53805387
padding: 4rem 0;
53815388
text-align: center;
53825389
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
5390+
}
5391+
53835392
.btn-explore,
53845393
.btn-secondary-hero,
53855394
.btn-random-project,
@@ -6361,6 +6370,15 @@ body.sidebar-collapsed .sidebar-dock .sidebar-footer span {
63616370

63626371
body.sidebar-collapsed .sidebar-dock .sidebar-footer button {
63636372
justify-content: center !important;
6373+
padding-top:8px ;
6374+
padding-bottom:8px ;
6375+
}
6376+
6377+
body.sidebar-collapsed .sidebar-dock .sidebar-footer .sidebar-main-controls {
6378+
display: flex;
6379+
flex-direction: column;
6380+
justify-content: center;
6381+
align-items: center;
63646382
}
63656383

63666384
/* Main content shift for expanded sidebar */

web-app/index.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@
192192
tabindex="-1"
193193
>
194194
<span class="sidebar-icon"
195-
><svg data-lucide="gamepad-2"></svg
196-
></span>
195+
><svg data-lucide="gamepad-2"></svg>
196+
</span>
197197
<span class="sidebar-label">Games Arcade</span>
198198
</button>
199199
<button
@@ -241,22 +241,24 @@
241241

242242
<div class="sidebar-footer">
243243
<div class="sidebar-controls">
244-
<button
244+
<div class="sidebar-main-controls">
245+
<button
245246
aria-label="Mute sound"
246247
class="sound-toggle"
247248
id="sidebarSoundToggle"
248249
type="button"
249-
>
250+
>
250251
<i class="fas fa-volume-up" aria-hidden="true"></i>
251252
</button>
252253
<button
253-
aria-label="Switch to light mode"
254-
class="theme-toggle"
255-
id="sidebarThemeToggle"
256-
type="button"
254+
aria-label="Switch to light mode"
255+
class="theme-toggle"
256+
id="sidebarThemeToggle"
257+
type="button"
257258
>
258-
<i class="fas fa-sun" aria-hidden="true"></i>
259-
</button>
259+
<i class="fas fa-sun" aria-hidden="true"></i>
260+
</button>
261+
</div>
260262
<button
261263
aria-label="Toggle Sidebar"
262264
class="collapse-sidebar-btn"

0 commit comments

Comments
 (0)