hsila commited on
Commit
d7eb2df
·
1 Parent(s): ba78288

style: fix responsive layout issues for category buttons and header

Browse files

- Add max-width constraint to radio buttons to prevent overflow
- Implement responsive breakpoint at 510px for vertical button layout
- Fix app-header paragraph to span full width instead of 640px
- Improve mobile responsiveness and prevent layout breaks

Files changed (1) hide show
  1. src/styles/global.css +14 -5
src/styles/global.css CHANGED
@@ -48,7 +48,7 @@ p {
48
 
49
  .app-header p {
50
  margin-top: 10px;
51
- max-width: 640px;
52
  line-height: 1.7;
53
  }
54
 
@@ -90,7 +90,7 @@ p {
90
  .per-page-group {
91
  display: flex;
92
  flex-wrap: wrap;
93
- gap: 10px;
94
  }
95
 
96
  .radio-pill input,
@@ -103,7 +103,7 @@ p {
103
  display: inline-flex;
104
  align-items: center;
105
  justify-content: center;
106
- padding: 10px 16px;
107
  border-radius: 30px;
108
  border: 1px solid #30363d;
109
  background: rgba(15, 18, 25, 0.85);
@@ -111,6 +111,8 @@ p {
111
  font-size: 0.9rem;
112
  cursor: pointer;
113
  transition: border 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
 
 
114
  }
115
 
116
  .radio-pill input:checked + span,
@@ -395,7 +397,8 @@ select {
395
 
396
  .radio-group,
397
  .per-page-group {
398
- gap: 8px;
 
399
  }
400
 
401
  .radio-pill span,
@@ -424,6 +427,13 @@ select {
424
  }
425
  }
426
 
 
 
 
 
 
 
 
427
  /* Main content visibility for authentication */
428
  .main-content {
429
  display: none;
@@ -432,4 +442,3 @@ select {
432
  .main-content.authenticated {
433
  display: block;
434
  }
435
-
 
48
 
49
  .app-header p {
50
  margin-top: 10px;
51
+ max-width: 100%;
52
  line-height: 1.7;
53
  }
54
 
 
90
  .per-page-group {
91
  display: flex;
92
  flex-wrap: wrap;
93
+ gap: 20px !important;
94
  }
95
 
96
  .radio-pill input,
 
103
  display: inline-flex;
104
  align-items: center;
105
  justify-content: center;
106
+ padding: 10px 20px;
107
  border-radius: 30px;
108
  border: 1px solid #30363d;
109
  background: rgba(15, 18, 25, 0.85);
 
111
  font-size: 0.9rem;
112
  cursor: pointer;
113
  transition: border 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
114
+ min-width: 100px;
115
+ max-width: 200px;
116
  }
117
 
118
  .radio-pill input:checked + span,
 
397
 
398
  .radio-group,
399
  .per-page-group {
400
+ flex-direction: column;
401
+ gap: 12px;
402
  }
403
 
404
  .radio-pill span,
 
427
  }
428
  }
429
 
430
+ @media (max-width: 541px) {
431
+ .radio-group {
432
+ flex-direction: column;
433
+ gap: 12px;
434
+ }
435
+ }
436
+
437
  /* Main content visibility for authentication */
438
  .main-content {
439
  display: none;
 
442
  .main-content.authenticated {
443
  display: block;
444
  }