Skip to content

Commit fe857e3

Browse files
clucraftclaude
andcommitted
Move version info to sidebar in Settings page
- Relocate PriceGhost version, changelog, and GitHub links from bottom of page to underneath the left navigation buttons - Update sidebar CSS to use flexbox for proper layout Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 63fcaeb commit fe857e3

File tree

1 file changed

+41
-34
lines changed

1 file changed

+41
-34
lines changed

frontend/src/pages/Settings.tsx

Lines changed: 41 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -525,15 +525,19 @@ export default function Settings() {
525525
.settings-sidebar {
526526
width: 220px;
527527
flex-shrink: 0;
528+
display: flex;
529+
flex-direction: column;
530+
position: sticky;
531+
top: 80px;
532+
align-self: flex-start;
533+
max-height: calc(100vh - 100px);
528534
}
529535
530536
.settings-nav {
531537
background: var(--surface);
532538
border-radius: 0.75rem;
533539
box-shadow: var(--shadow);
534540
overflow: hidden;
535-
position: sticky;
536-
top: 80px;
537541
}
538542
539543
.settings-nav-item {
@@ -916,6 +920,41 @@ export default function Settings() {
916920
</button>
917921
)}
918922
</nav>
923+
924+
{/* Version Info */}
925+
{versionInfo && (
926+
<div style={{
927+
marginTop: 'auto',
928+
paddingTop: '1.5rem',
929+
borderTop: '1px solid var(--border)',
930+
color: 'var(--text-muted)',
931+
fontSize: '0.75rem',
932+
display: 'flex',
933+
flexDirection: 'column',
934+
gap: '0.25rem',
935+
}}>
936+
<span>PriceGhost v{versionInfo.version}</span>
937+
<div style={{ display: 'flex', gap: '0.5rem' }}>
938+
<a
939+
href="https://github.com/clucraft/PriceGhost/blob/main/CHANGELOG.md"
940+
target="_blank"
941+
rel="noopener noreferrer"
942+
style={{ color: 'var(--primary)', textDecoration: 'none' }}
943+
>
944+
Changelog
945+
</a>
946+
<span></span>
947+
<a
948+
href="https://github.com/clucraft/PriceGhost"
949+
target="_blank"
950+
rel="noopener noreferrer"
951+
style={{ color: 'var(--primary)', textDecoration: 'none' }}
952+
>
953+
GitHub
954+
</a>
955+
</div>
956+
</div>
957+
)}
919958
</div>
920959

921960
<div className="settings-content">
@@ -1709,38 +1748,6 @@ export default function Settings() {
17091748
</>
17101749
)}
17111750
</div>
1712-
1713-
{/* Version Info */}
1714-
{versionInfo && (
1715-
<div style={{
1716-
marginTop: '2rem',
1717-
paddingTop: '1rem',
1718-
borderTop: '1px solid var(--border)',
1719-
textAlign: 'center',
1720-
color: 'var(--text-muted)',
1721-
fontSize: '0.75rem',
1722-
}}>
1723-
<span>PriceGhost v{versionInfo.version}</span>
1724-
<span style={{ margin: '0 0.5rem' }}></span>
1725-
<a
1726-
href="https://github.com/clucraft/PriceGhost/blob/main/CHANGELOG.md"
1727-
target="_blank"
1728-
rel="noopener noreferrer"
1729-
style={{ color: 'var(--primary)', textDecoration: 'none' }}
1730-
>
1731-
Changelog
1732-
</a>
1733-
<span style={{ margin: '0 0.5rem' }}></span>
1734-
<a
1735-
href="https://github.com/clucraft/PriceGhost"
1736-
target="_blank"
1737-
rel="noopener noreferrer"
1738-
style={{ color: 'var(--primary)', textDecoration: 'none' }}
1739-
>
1740-
GitHub
1741-
</a>
1742-
</div>
1743-
)}
17441751
</div>
17451752
</Layout>
17461753
);

0 commit comments

Comments
 (0)