Spaces:
Sleeping
Sleeping
Sasha commited on
Commit ·
6b2bdd0
1
Parent(s): 4d13bf3
style: make dashboard layout responsive for mobile devices
Browse files- client/src/index.css +73 -0
client/src/index.css
CHANGED
|
@@ -1084,3 +1084,76 @@ body {
|
|
| 1084 |
animation: spin 1s linear infinite;
|
| 1085 |
}
|
| 1086 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1084 |
animation: spin 1s linear infinite;
|
| 1085 |
}
|
| 1086 |
|
| 1087 |
+
/* ==========================================================================
|
| 1088 |
+
Mobile Responsiveness
|
| 1089 |
+
========================================================================== */
|
| 1090 |
+
@media (max-width: 768px) {
|
| 1091 |
+
/* Header */
|
| 1092 |
+
.app-header {
|
| 1093 |
+
flex-direction: column;
|
| 1094 |
+
align-items: stretch;
|
| 1095 |
+
padding: 1rem;
|
| 1096 |
+
gap: 1rem;
|
| 1097 |
+
}
|
| 1098 |
+
|
| 1099 |
+
.brand-section {
|
| 1100 |
+
flex-wrap: wrap;
|
| 1101 |
+
justify-content: space-between;
|
| 1102 |
+
}
|
| 1103 |
+
|
| 1104 |
+
.header-stream-selector {
|
| 1105 |
+
margin-left: 0;
|
| 1106 |
+
margin-top: 0.75rem;
|
| 1107 |
+
width: 100%;
|
| 1108 |
+
}
|
| 1109 |
+
|
| 1110 |
+
.select-input--compact {
|
| 1111 |
+
max-width: 100%;
|
| 1112 |
+
width: 100%;
|
| 1113 |
+
}
|
| 1114 |
+
|
| 1115 |
+
/* Controls and Navigation */
|
| 1116 |
+
.header-controls {
|
| 1117 |
+
flex-direction: column-reverse;
|
| 1118 |
+
align-items: stretch;
|
| 1119 |
+
gap: 1rem;
|
| 1120 |
+
}
|
| 1121 |
+
|
| 1122 |
+
.user-profile {
|
| 1123 |
+
justify-content: space-between;
|
| 1124 |
+
}
|
| 1125 |
+
|
| 1126 |
+
/* Swipe-navigation (tabs) */
|
| 1127 |
+
.nav-tabs {
|
| 1128 |
+
overflow-x: auto;
|
| 1129 |
+
padding-bottom: 0.5rem;
|
| 1130 |
+
justify-content: flex-start;
|
| 1131 |
+
-webkit-overflow-scrolling: touch;
|
| 1132 |
+
scrollbar-width: none; /* Firefox */
|
| 1133 |
+
}
|
| 1134 |
+
|
| 1135 |
+
.nav-tabs::-webkit-scrollbar {
|
| 1136 |
+
display: none; /* Chrome/Safari */
|
| 1137 |
+
}
|
| 1138 |
+
|
| 1139 |
+
/* Dashboard Content Padding */
|
| 1140 |
+
.dashboard-content {
|
| 1141 |
+
padding: 1rem 0.5rem;
|
| 1142 |
+
}
|
| 1143 |
+
|
| 1144 |
+
.panel {
|
| 1145 |
+
padding: 1rem;
|
| 1146 |
+
}
|
| 1147 |
+
|
| 1148 |
+
.panel-header {
|
| 1149 |
+
flex-direction: column;
|
| 1150 |
+
align-items: flex-start;
|
| 1151 |
+
gap: 1rem;
|
| 1152 |
+
}
|
| 1153 |
+
|
| 1154 |
+
.panel-controls, .search-container {
|
| 1155 |
+
width: 100%;
|
| 1156 |
+
max-width: 100%;
|
| 1157 |
+
}
|
| 1158 |
+
}
|
| 1159 |
+
|