Skip to content

Commit 301a497

Browse files
Edwin Chanclaude
authored andcommitted
fix(ui): pin sidebar across scroll, remove avatar chrome, tidy FTW rows
- Drop overflow:hidden on .app-shell so the fixed sidebar truly stays put while the page scrolls; let the sidebar itself handle overflow for tall nav lists, with the scrollbar hidden - Strip the white ring/shadow off .account-avatar-button so the uploaded pfp shows cleanly; add a small hover lift instead - Reflow the FTW leader row grid so the mode chip never collides with the score column; hover background for legibility Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent eb894ba commit 301a497

1 file changed

Lines changed: 28 additions & 7 deletions

File tree

app/globals.css

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ table {
145145
display: grid;
146146
grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
147147
min-height: 100vh;
148-
overflow: hidden;
149148
}
150149

151150
.single-page {
@@ -2447,7 +2446,9 @@ html {
24472446
left: 0;
24482447
width: var(--sidebar-collapsed-width);
24492448
height: 100vh;
2450-
overflow: hidden;
2449+
overflow-x: hidden;
2450+
overflow-y: auto;
2451+
overscroll-behavior: contain;
24512452
display: flex;
24522453
flex-direction: column;
24532454
gap: 8px;
@@ -2789,12 +2790,26 @@ html {
27892790
height: 42px;
27902791
place-items: center;
27912792
overflow: hidden;
2792-
border: 1px solid var(--color-border);
27932793
border-radius: 50%;
2794-
background: var(--color-card-bg);
2794+
background: transparent;
27952795
color: var(--color-text-strong);
2796-
box-shadow: var(--shadow-soft);
27972796
text-decoration: none;
2797+
transition:
2798+
transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
2799+
box-shadow 200ms ease;
2800+
}
2801+
2802+
.account-avatar-button:hover {
2803+
transform: scale(1.05);
2804+
box-shadow: 0 4px 14px rgba(240, 93, 155, 0.35);
2805+
}
2806+
2807+
.account-avatar-button .avatar {
2808+
width: 100%;
2809+
height: 100%;
2810+
border-radius: 50%;
2811+
object-fit: cover;
2812+
display: block;
27982813
}
27992814

28002815
.account-avatar-img {
@@ -5888,12 +5903,18 @@ html:not(.light) .ftw-tag.is-active {
58885903

58895904
.ftw-leader-row {
58905905
display: grid;
5891-
grid-template-columns: 28px minmax(0, 1fr) auto auto;
5906+
grid-template-columns: 28px minmax(0, 1fr) minmax(0, auto) auto;
58925907
align-items: center;
58935908
gap: 12px;
5894-
padding: 8px 6px;
5909+
padding: 10px 8px;
58955910
border-bottom: 1px solid var(--color-border);
58965911
font-size: 0.92rem;
5912+
border-radius: 8px;
5913+
transition: background 160ms ease;
5914+
}
5915+
5916+
.ftw-leader-row:hover {
5917+
background: var(--color-surface-alt);
58975918
}
58985919

58995920
.ftw-leader-row:last-child {

0 commit comments

Comments
 (0)