Skip to content

Commit b913e22

Browse files
committed
style(sidebar): align utility settings button icon spacing
1 parent ddac419 commit b913e22

2 files changed

Lines changed: 21 additions & 10 deletions

File tree

src/features/app/components/SidebarBottomRail.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,17 @@ export function SidebarBottomRail({
164164
</div>
165165
)}
166166
<div className="sidebar-utility-actions">
167-
<button
168-
className="ghost sidebar-labeled-button sidebar-utility-button"
169-
type="button"
170-
onClick={onOpenSettings}
171-
aria-label="Open settings"
172-
>
173-
<Settings size={14} aria-hidden />
174-
<span>Settings</span>
175-
</button>
167+
<button
168+
className="ghost sidebar-labeled-button sidebar-utility-button"
169+
type="button"
170+
onClick={onOpenSettings}
171+
aria-label="Open settings"
172+
>
173+
<span className="sidebar-labeled-button-icon" aria-hidden>
174+
<Settings size={14} aria-hidden />
175+
</span>
176+
<span>Settings</span>
177+
</button>
176178
{showDebugButton && (
177179
<button
178180
className="ghost sidebar-utility-button"

src/styles/sidebar.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,15 @@
17831783
transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
17841784
}
17851785

1786+
.sidebar-labeled-button-icon {
1787+
width: 20px;
1788+
height: 20px;
1789+
display: inline-flex;
1790+
align-items: center;
1791+
justify-content: center;
1792+
flex-shrink: 0;
1793+
}
1794+
17861795
.sidebar-labeled-button:hover,
17871796
.sidebar-labeled-button:focus-visible,
17881797
.sidebar-labeled-button.is-open {
@@ -1932,7 +1941,7 @@
19321941

19331942
.sidebar-utility-button {
19341943
height: 34px;
1935-
justify-content: center;
1944+
justify-content: flex-start;
19361945
flex: 1;
19371946
}
19381947

0 commit comments

Comments
 (0)