diff --git a/frontend/src/App.css b/frontend/src/App.css index f810da5..1e55693 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -241,6 +241,23 @@ .header-actions .btn { display: inline-flex; align-items: center; + white-space: nowrap; +} +.header-actions .btn svg { width: 18px; height: 18px; } + +/* Responsive sizing for small screens */ +@media (max-width: 992px) { + .header-actions { gap: 0.4rem; } + .header-actions .btn { + padding: 0.35rem 0.6rem; + font-size: 0.875rem; + } + .header-actions .btn .me-1 { margin-right: 0.4rem !important; } +} + +@media (max-width: 576px) { + .page-header .col-auto.ms-auto { width: 100%; } + .header-actions { width: 100%; } } /* Custom responsive adjustments */ diff --git a/frontend/src/components/PageHeaderActions.jsx b/frontend/src/components/PageHeaderActions.jsx index 1ee29cb..3414bd4 100644 --- a/frontend/src/components/PageHeaderActions.jsx +++ b/frontend/src/components/PageHeaderActions.jsx @@ -29,64 +29,60 @@ function PageHeaderActions({
{onOnlineUpdate && ( - )} {onBackgroundUpdate && ( - )}
+
- {onOnlineUpdate && ( - - )} -
-
- {onPreview && ( - - )} - {onRefresh && ( - - )} - {onImport && ( - - )} - {onExport && ( - - )} - {onClear && ( - - )} - {onSave && ( - - )} - {onHistory && ( - - )} + {onPreview && ( + + )} + {onRefresh && ( + + )} + {onImport && ( + + )} + {onExport && ( + + )} + {onClear && ( + + )} + {onSave && ( + + )} + {onHistory && ( + + )}
);