Skip to content

Commit fca8f99

Browse files
committed
feat: add responsive breakpoints and mobile support
- Update main breakpoint from 1100px to 1000px for split/stacked layout - Add dedicated mobile breakpoint at 600px with optimizations - Reduced padding and spacing for compact mobile layout - Smaller header and logo for mobile screens - Adjusted button and panel padding for better mobile UX - Optimized status footer for mobile view - Update landing page breakpoint to 1000px for consistency - Applied changes to both web and desktop apps
1 parent b8bd4ce commit fca8f99

4 files changed

Lines changed: 70 additions & 18 deletions

File tree

apps/desktop/src/App.css

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ a.hint:active {
417417
align-items: start;
418418
}
419419

420-
@media (max-width: 920px) {
420+
@media (max-width: 1000px) {
421421
.landing-grid {
422422
grid-template-columns: 1fr;
423423
}
@@ -744,7 +744,7 @@ button {
744744

745745
/* ---------- Responsiveness ---------- */
746746
/* Stack columns on narrower screens; hide the resizer */
747-
@media (max-width: 1100px) {
747+
@media (max-width: 1000px) {
748748
.app-container {
749749
grid-template-areas:
750750
'header'
@@ -761,14 +761,40 @@ button {
761761
.left-panel, .right-panel { padding: 0; }
762762
}
763763

764-
/* Tighten padding and let header wrap nicely on small devices */
765-
@media (max-width: 700px) {
764+
/* Mobile optimizations for small screens */
765+
@media (max-width: 600px) {
766766
.app-container {
767-
padding: var(--space-4);
768-
padding-bottom: 4.5rem;
767+
padding: var(--space-3);
768+
padding-bottom: 4rem;
769+
gap: var(--space-4);
770+
}
771+
772+
.header {
773+
flex-wrap: wrap;
774+
gap: var(--space-2);
775+
padding: var(--space-3) 0;
776+
}
777+
778+
.header h1 {
779+
font-size: 1.5rem;
780+
}
781+
782+
.header img[alt="GitContext"] {
783+
height: 36px;
784+
}
785+
786+
.panel-section {
787+
padding: var(--space-3) var(--space-4);
788+
}
789+
790+
.btn, .gc-button {
791+
padding: var(--space-3);
792+
font-size: var(--text-sm);
793+
}
794+
795+
.status-footer-fixed {
796+
padding: var(--space-2) var(--space-3);
769797
}
770-
.header { flex-wrap: wrap; gap: var(--space-2); }
771-
.header img[alt="GitContext"] { height: 40px; }
772798
}
773799

774800
/* Selected Files: rows wrap on small screens; token count drops under filename */

apps/desktop/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ body,
5252
}
5353

5454
/* Allow scrolling on narrow screens when content exceeds viewport */
55-
@media (max-width: 1100px) {
55+
@media (max-width: 1000px) {
5656
html,
5757
body,
5858
#root {

apps/web/src/App.css

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ a.hint:active {
208208
align-items: start;
209209
}
210210

211-
@media (max-width: 920px) {
211+
@media (max-width: 1000px) {
212212
.landing-grid {
213213
grid-template-columns: 1fr;
214214
}
@@ -535,7 +535,7 @@ button {
535535

536536
/* ---------- Responsiveness ---------- */
537537
/* Stack columns on narrower screens; hide the resizer */
538-
@media (max-width: 1100px) {
538+
@media (max-width: 1000px) {
539539
.app-container {
540540
grid-template-areas:
541541
'header'
@@ -552,14 +552,40 @@ button {
552552
.left-panel, .right-panel { padding: 0; }
553553
}
554554

555-
/* Tighten padding and let header wrap nicely on small devices */
556-
@media (max-width: 700px) {
555+
/* Mobile optimizations for small screens */
556+
@media (max-width: 600px) {
557557
.app-container {
558-
padding: var(--space-4);
559-
padding-bottom: 4.5rem;
558+
padding: var(--space-3);
559+
padding-bottom: 4rem;
560+
gap: var(--space-4);
561+
}
562+
563+
.header {
564+
flex-wrap: wrap;
565+
gap: var(--space-2);
566+
padding: var(--space-3) 0;
567+
}
568+
569+
.header h1 {
570+
font-size: 1.5rem;
571+
}
572+
573+
.header img[alt="GitContext"] {
574+
height: 36px;
575+
}
576+
577+
.panel-section {
578+
padding: var(--space-3) var(--space-4);
579+
}
580+
581+
.btn, .gc-button {
582+
padding: var(--space-3);
583+
font-size: var(--text-sm);
584+
}
585+
586+
.status-footer-fixed {
587+
padding: var(--space-2) var(--space-3);
560588
}
561-
.header { flex-wrap: wrap; gap: var(--space-2); }
562-
.header img[alt="GitContext"] { height: 40px; }
563589
}
564590

565591
/* Selected Files: rows wrap on small screens; token count drops under filename */

apps/web/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ body,
5252
}
5353

5454
/* Allow scrolling on narrow screens when content exceeds viewport */
55-
@media (max-width: 1100px) {
55+
@media (max-width: 1000px) {
5656
html,
5757
body,
5858
#root {

0 commit comments

Comments
 (0)