Skip to content

Commit cd5b68a

Browse files
committed
fix: improve layout and spacing in GlobalVariablesPage
- Updated the layout of the GlobalVariablesPage to ensure proper flex behavior by changing class names for better responsiveness. - Adjusted padding for the button container to enhance visual alignment and spacing. These changes aim to improve the overall user experience and accessibility of the settings page.
1 parent 93cdab9 commit cd5b68a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage

src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export default function GlobalVariablesPage() {
274274
return (
275275
<div className="flex h-full w-full flex-col justify-between gap-6">
276276
<div className="flex w-full items-start justify-between gap-6">
277-
<div className="flex w-full flex-col">
277+
<div className="flex min-w-0 flex-1 flex-col">
278278
<h2
279279
className="flex items-center text-lg font-semibold tracking-tight"
280280
data-testid="settings_menu_header"
@@ -289,7 +289,7 @@ export default function GlobalVariablesPage() {
289289
{t("globalVars.pageDescription")}
290290
</p>
291291
</div>
292-
<div className="flex flex-shrink-0 items-center gap-2">
292+
<div className="flex flex-shrink-0 items-center gap-2 pr-1">
293293
<GlobalVariableModal asChild>
294294
<Button data-testid="api-key-button-store" variant="primary">
295295
<IconComponent name="Plus" className="w-4" />

0 commit comments

Comments
 (0)