mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-04-29 19:06:31 +02:00
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>
This commit is contained in:
parent
63fcaebfd8
commit
fe857e3625
1 changed files with 41 additions and 34 deletions
|
|
@ -525,6 +525,12 @@ export default function Settings() {
|
||||||
.settings-sidebar {
|
.settings-sidebar {
|
||||||
width: 220px;
|
width: 220px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
position: sticky;
|
||||||
|
top: 80px;
|
||||||
|
align-self: flex-start;
|
||||||
|
max-height: calc(100vh - 100px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-nav {
|
.settings-nav {
|
||||||
|
|
@ -532,8 +538,6 @@ export default function Settings() {
|
||||||
border-radius: 0.75rem;
|
border-radius: 0.75rem;
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: sticky;
|
|
||||||
top: 80px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-nav-item {
|
.settings-nav-item {
|
||||||
|
|
@ -916,6 +920,41 @@ export default function Settings() {
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
{/* Version Info */}
|
||||||
|
{versionInfo && (
|
||||||
|
<div style={{
|
||||||
|
marginTop: 'auto',
|
||||||
|
paddingTop: '1.5rem',
|
||||||
|
borderTop: '1px solid var(--border)',
|
||||||
|
color: 'var(--text-muted)',
|
||||||
|
fontSize: '0.75rem',
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
gap: '0.25rem',
|
||||||
|
}}>
|
||||||
|
<span>PriceGhost v{versionInfo.version}</span>
|
||||||
|
<div style={{ display: 'flex', gap: '0.5rem' }}>
|
||||||
|
<a
|
||||||
|
href="https://github.com/clucraft/PriceGhost/blob/main/CHANGELOG.md"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
style={{ color: 'var(--primary)', textDecoration: 'none' }}
|
||||||
|
>
|
||||||
|
Changelog
|
||||||
|
</a>
|
||||||
|
<span>•</span>
|
||||||
|
<a
|
||||||
|
href="https://github.com/clucraft/PriceGhost"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
style={{ color: 'var(--primary)', textDecoration: 'none' }}
|
||||||
|
>
|
||||||
|
GitHub
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="settings-content">
|
<div className="settings-content">
|
||||||
|
|
@ -1709,38 +1748,6 @@ export default function Settings() {
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Version Info */}
|
|
||||||
{versionInfo && (
|
|
||||||
<div style={{
|
|
||||||
marginTop: '2rem',
|
|
||||||
paddingTop: '1rem',
|
|
||||||
borderTop: '1px solid var(--border)',
|
|
||||||
textAlign: 'center',
|
|
||||||
color: 'var(--text-muted)',
|
|
||||||
fontSize: '0.75rem',
|
|
||||||
}}>
|
|
||||||
<span>PriceGhost v{versionInfo.version}</span>
|
|
||||||
<span style={{ margin: '0 0.5rem' }}>•</span>
|
|
||||||
<a
|
|
||||||
href="https://github.com/clucraft/PriceGhost/blob/main/CHANGELOG.md"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
style={{ color: 'var(--primary)', textDecoration: 'none' }}
|
|
||||||
>
|
|
||||||
Changelog
|
|
||||||
</a>
|
|
||||||
<span style={{ margin: '0 0.5rem' }}>•</span>
|
|
||||||
<a
|
|
||||||
href="https://github.com/clucraft/PriceGhost"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
style={{ color: 'var(--primary)', textDecoration: 'none' }}
|
|
||||||
>
|
|
||||||
GitHub
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue