Luigi commited on
Commit
c27a8a9
·
1 Parent(s): 46a1221

fix(ui): correct responsive breakpoints for desktop gaming

Browse files

- Add proper desktop breakpoints (>1600px, 1200-1600px)
- Maintain comfortable game window width on desktop
- Only apply compact layout below 1200px
- Preserve 2-column grid until 1200px breakpoint
- Optimize sidebar widths for different screen sizes

Files changed (1) hide show
  1. static/styles.css +38 -6
static/styles.css CHANGED
@@ -1133,8 +1133,38 @@ body {
1133
  50% { opacity: 0.8; }
1134
  }
1135
 
1136
- /* Responsive Design */
1137
- @media (max-width: 1400px) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1138
  #left-sidebar, #right-sidebar {
1139
  width: 280px;
1140
  }
@@ -1147,17 +1177,18 @@ body {
1147
  width: 200px;
1148
  height: 150px;
1149
  }
 
 
 
 
1150
  }
1151
 
 
1152
  @media (max-width: 1024px) {
1153
  #left-sidebar, #right-sidebar {
1154
  width: 240px;
1155
  }
1156
 
1157
- .sidebar-section {
1158
- padding: var(--space-md);
1159
- }
1160
-
1161
  #minimap-container {
1162
  width: 180px;
1163
  height: 135px;
@@ -1188,6 +1219,7 @@ body {
1188
  }
1189
  }
1190
 
 
1191
  @media (max-width: 768px) {
1192
  #topbar {
1193
  padding: var(--space-sm) var(--space-md);
 
1133
  50% { opacity: 0.8; }
1134
  }
1135
 
1136
+ /* Responsive Design - Optimized for Desktop Gaming */
1137
+
1138
+ /* Large Desktop (>1600px) - Optimal gaming experience */
1139
+ @media (min-width: 1600px) {
1140
+ #left-sidebar, #right-sidebar {
1141
+ width: 360px;
1142
+ }
1143
+
1144
+ #minimap-container {
1145
+ width: 280px;
1146
+ height: 210px;
1147
+ }
1148
+
1149
+ .build-buttons, .unit-buttons {
1150
+ grid-template-columns: repeat(2, 1fr);
1151
+ }
1152
+ }
1153
+
1154
+ /* Standard Desktop (1200px-1600px) - Good gaming experience */
1155
+ @media (max-width: 1600px) {
1156
+ #left-sidebar, #right-sidebar {
1157
+ width: 320px;
1158
+ }
1159
+
1160
+ #minimap-container {
1161
+ width: 240px;
1162
+ height: 180px;
1163
+ }
1164
+ }
1165
+
1166
+ /* Small Desktop/Large Tablet (1024px-1200px) - Still playable */
1167
+ @media (max-width: 1200px) {
1168
  #left-sidebar, #right-sidebar {
1169
  width: 280px;
1170
  }
 
1177
  width: 200px;
1178
  height: 150px;
1179
  }
1180
+
1181
+ .sidebar-section {
1182
+ padding: var(--space-md);
1183
+ }
1184
  }
1185
 
1186
+ /* Tablet (768px-1024px) - Compact but playable */
1187
  @media (max-width: 1024px) {
1188
  #left-sidebar, #right-sidebar {
1189
  width: 240px;
1190
  }
1191
 
 
 
 
 
1192
  #minimap-container {
1193
  width: 180px;
1194
  height: 135px;
 
1219
  }
1220
  }
1221
 
1222
+ /* Mobile (<768px) - Touch optimized */
1223
  @media (max-width: 768px) {
1224
  #topbar {
1225
  padding: var(--space-sm) var(--space-md);