|
71 | 71 | .editor-header { |
72 | 72 | display: flex; |
73 | 73 | justify-content: space-between; |
74 | | - align-items: center; |
| 74 | + align-items: flex-start; |
75 | 75 | padding: var(--space-3) var(--space-4); |
76 | 76 | border-bottom: 1px solid var(--border-color); |
77 | 77 | background: var(--bg-secondary); |
| 78 | + gap: var(--space-3); |
| 79 | + flex-wrap: wrap; |
| 80 | + min-height: fit-content; |
78 | 81 | } |
79 | 82 |
|
80 | 83 | .editor-title-row { |
81 | 84 | display: flex; |
82 | 85 | align-items: center; |
83 | 86 | gap: var(--space-2); |
| 87 | + flex-shrink: 0; |
84 | 88 | } |
85 | 89 |
|
86 | 90 | .editor-header h3 { |
|
118 | 122 |
|
119 | 123 | .editor-actions { |
120 | 124 | display: flex; |
121 | | - gap: var(--space-2); |
| 125 | + flex-wrap: wrap; |
| 126 | + gap: var(--space-1) var(--space-2); |
122 | 127 | align-items: center; |
| 128 | + justify-content: flex-end; |
| 129 | + min-width: 0; |
| 130 | + flex: 1; |
| 131 | + max-width: 100%; |
123 | 132 | } |
124 | 133 |
|
125 | 134 | .save-status { |
|
305 | 314 | RESPONSIVE: EDITOR HEADER & TOOLBAR |
306 | 315 | ===================================================== */ |
307 | 316 |
|
| 317 | +/* Large screens: compact button spacing */ |
| 318 | +@media (max-width: 1200px) { |
| 319 | + .editor-actions { |
| 320 | + gap: var(--space-1); |
| 321 | + } |
| 322 | + |
| 323 | + .editor-actions button { |
| 324 | + padding: var(--space-1) var(--space-2); |
| 325 | + } |
| 326 | +} |
| 327 | + |
308 | 328 | /* Tablet and below: allow the header row to wrap so |
309 | 329 | action buttons spill to a second row instead of |
310 | 330 | being pushed off-screen */ |
311 | 331 | @media (max-width: 900px) { |
312 | 332 | .editor-header { |
313 | | - flex-wrap: wrap; |
314 | 333 | padding: var(--space-2) var(--space-3); |
315 | 334 | } |
316 | 335 |
|
317 | | - .editor-actions { |
318 | | - flex-wrap: wrap; |
319 | | - gap: var(--space-1); |
| 336 | + .editor-actions button { |
| 337 | + padding: var(--space-1) var(--space-2); |
| 338 | + font-size: var(--text-xs); |
320 | 339 | } |
321 | 340 | } |
322 | 341 |
|
|
325 | 344 | @media (max-width: 768px) { |
326 | 345 | .editor-actions { |
327 | 346 | flex: 0 0 100%; |
| 347 | + justify-content: flex-start; |
| 348 | + } |
| 349 | + |
| 350 | + .save-status { |
| 351 | + order: 10; |
| 352 | + flex-basis: 100%; |
| 353 | + text-align: left; |
| 354 | + margin-top: var(--space-1); |
328 | 355 | } |
329 | 356 | } |
330 | 357 |
|
331 | | -/* Mobile (≤480px): tighter button padding so more |
332 | | - buttons fit per row; hide verbose save status */ |
333 | | -@media (max-width: 480px) { |
| 358 | +/* Mobile (≤600px): icon-only buttons */ |
| 359 | +@media (max-width: 600px) { |
334 | 360 | .editor-actions button { |
335 | | - padding: var(--space-1) var(--space-2); |
336 | | - font-size: var(--text-xs); |
| 361 | + padding: var(--space-2); |
337 | 362 | } |
338 | 363 |
|
339 | | - .save-status { |
| 364 | + /* Hide button text labels, keep icons */ |
| 365 | + .editor-actions .btn-label { |
| 366 | + display: none; |
| 367 | + } |
| 368 | + |
| 369 | + .save-status, |
| 370 | + .save-error span { |
340 | 371 | display: none; |
341 | 372 | } |
342 | 373 | } |
0 commit comments