Aryanshh commited on
Commit
0419cad
·
1 Parent(s): 87e9783

style: 3-column main grid with Command History beside Command Console

Browse files
Files changed (2) hide show
  1. dashboard/index.html +10 -10
  2. dashboard/style.css +13 -2
dashboard/index.html CHANGED
@@ -33,7 +33,7 @@
33
  </div>
34
 
35
  <main>
36
- <div class="main-grid">
37
  <section class="control-panel card">
38
  <h3>Command Console</h3>
39
 
@@ -118,6 +118,15 @@
118
  </div>
119
  </section>
120
 
 
 
 
 
 
 
 
 
 
121
  <section class="shipment-cart-section">
122
  <div class="card full-width h-100">
123
  <h3>Your Orders</h3>
@@ -125,15 +134,6 @@
125
  </div>
126
  </div>
127
  </section>
128
-
129
- <section class="history-section" style="margin-top: 2rem;">
130
- <div class="card full-width" style="height: auto; max-height: 400px; display: flex; flex-direction: column;">
131
- <h3>Command History</h3>
132
- <div class="history-list" id="activity-log" style="overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; padding-right: 0.5rem; flex: 1;">
133
- <!-- items arrive here -->
134
- </div>
135
- </div>
136
- </section>
137
  </div>
138
 
139
  <section class="metrics-grid">
 
33
  </div>
34
 
35
  <main>
36
+ <div class="main-grid main-grid-3col">
37
  <section class="control-panel card">
38
  <h3>Command Console</h3>
39
 
 
118
  </div>
119
  </section>
120
 
121
+ <!-- Command History: 2nd column -->
122
+ <section class="card" style="display: flex; flex-direction: column; overflow: hidden;">
123
+ <h3>Command History</h3>
124
+ <div class="history-list" id="activity-log" style="overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; padding-right: 0.5rem; flex: 1; margin-top: 0.8rem;">
125
+ <!-- items arrive here -->
126
+ </div>
127
+ </section>
128
+
129
+ <!-- Your Orders: 3rd column -->
130
  <section class="shipment-cart-section">
131
  <div class="card full-width h-100">
132
  <h3>Your Orders</h3>
 
134
  </div>
135
  </div>
136
  </section>
 
 
 
 
 
 
 
 
 
137
  </div>
138
 
139
  <section class="metrics-grid">
dashboard/style.css CHANGED
@@ -192,11 +192,22 @@ header {
192
  grid-template-columns: 1.6fr 1fr;
193
  gap: 2rem;
194
  margin-bottom: 3rem;
195
- align-items: start; /* Don't stretch if content is small */
196
  }
197
 
 
 
 
 
 
 
 
 
 
 
 
198
  @media (max-width: 900px) {
199
- .main-grid { grid-template-columns: 1fr; }
200
  }
201
 
202
  .metrics-grid, .details-section, .log-section, .guide-section {
 
192
  grid-template-columns: 1.6fr 1fr;
193
  gap: 2rem;
194
  margin-bottom: 3rem;
195
+ align-items: start;
196
  }
197
 
198
+ .main-grid-3col {
199
+ display: grid;
200
+ grid-template-columns: 1.6fr 1fr 1fr;
201
+ gap: 2rem;
202
+ margin-bottom: 3rem;
203
+ align-items: start;
204
+ }
205
+
206
+ @media (max-width: 1100px) {
207
+ .main-grid-3col { grid-template-columns: 1fr 1fr; }
208
+ }
209
  @media (max-width: 900px) {
210
+ .main-grid, .main-grid-3col { grid-template-columns: 1fr; }
211
  }
212
 
213
  .metrics-grid, .details-section, .log-section, .guide-section {