Skip to content

Commit 6b4c330

Browse files
committed
fix: ui inconsistencies
1 parent 6ac3471 commit 6b4c330

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,6 @@ src/web/test-results
161161

162162
# But keep README.md
163163
!README.md
164+
165+
agent/
166+
.cursor/

src/web/src/App.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
--border-col: color-mix(in hsl, currentColor 18%, transparent);
1313
--ring: #646cff;
1414
--primary: #646cff;
15-
--primary-contrast: white;
15+
--primary-contrast: CanvasText;
1616
}
1717
[data-theme="dark"] {
1818
--surface-1: color-mix(in oklab, Canvas 88%, transparent);
@@ -545,6 +545,10 @@ button {
545545
'right';
546546
grid-template-columns: 1fr;
547547
grid-template-rows: auto auto 1fr;
548+
/* Allow content to expand beyond viewport height for scrolling */
549+
min-height: 100vh;
550+
min-height: 100dvh;
551+
height: auto;
548552
}
549553
.column-resizer { display: none; }
550554
.left-panel, .right-panel { padding: 0; }

src/web/src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ function App() {
745745
<div className={`app-container${!projectLoaded ? ' landing-full' : ''}`} id="gc-app">
746746
<header className="header">
747747
<div className="brand">
748-
<button type="button" onClick={() => resetRepo()} title="Go to landing" aria-label="Go to landing" className="btn btn-ghost">
748+
<button type="button" onClick={() => resetRepo()} title="Go to landing" aria-label="Go to landing" className="btn btn-ghost" style={{ border: 'none', background: 'transparent' }}>
749749
<img
750750
src={`${import.meta.env.BASE_URL}${effectiveTheme === 'dark' ? 'gitcontext-full-dark.svg' : 'gitcontext-full.svg'}`}
751751
alt="GitContext"
@@ -821,12 +821,12 @@ function App() {
821821
</a>
822822
</div>
823823
<div className="row" style={{ marginTop: 8 }}>
824-
<button type="button" onClick={toggleTheme} className="btn btn-ghost btn-icon" aria-label="Toggle color scheme" title="Toggle color scheme">
824+
<button type="button" onClick={toggleTheme} className="btn btn-ghost btn-icon" aria-label="Toggle color scheme" title="Toggle color scheme" style={{ border: 'none', background: 'transparent' }}>
825825
{effectiveTheme === 'dark' ? <Sun size={16} /> : <Moon size={16} />}
826826
</button>
827-
<button type="button" onClick={toggleTheme} className="hint btn btn-ghost">
827+
<a href="#" onClick={(e) => { e.preventDefault(); toggleTheme(); }} className="hint">
828828
{effectiveTheme === 'dark' ? 'Turn on the light' : 'Turn off the light'}
829-
</button>
829+
</a>
830830
</div>
831831
</div>
832832
</div>

src/web/src/index.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ body,
2424
overflow: hidden;
2525
}
2626

27+
/* Allow scrolling on narrow screens when content exceeds viewport */
28+
@media (max-width: 1100px) {
29+
html,
30+
body,
31+
#root {
32+
overflow: auto;
33+
}
34+
}
35+
2736
a {
2837
font-weight: 500;
2938
color: #646cff;

0 commit comments

Comments
 (0)