Skip to content

Commit

Permalink
fix(sdl): break controls earlier so columns don't overlap
Browse files Browse the repository at this point in the history
refs #828
  • Loading branch information
jzsfkzm authored Feb 12, 2025
1 parent 626b482 commit c9d3b45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/deploy-web/src/components/sdl/MemoryFormControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const MemoryFormControl: React.FunctionComponent<Props> = ({ control, ser
render={({ field, fieldState }) => (
<FormPaper>
<FormItem>
<div className="flex flex-col items-start sm:flex-row sm:items-center">
<div className="flex flex-col items-start lg:flex-row lg:items-center">
<div className="flex items-center">
<MdMemory className="mr-2 text-2xl text-muted-foreground" />
<strong className="text-sm">Memory</strong>
Expand All @@ -58,7 +58,7 @@ export const MemoryFormControl: React.FunctionComponent<Props> = ({ control, ser
</CustomTooltip>
</div>

<div className="mt-2 flex items-center sm:ml-4 sm:mt-0">
<div className="mt-2 flex items-center lg:ml-4 lg:mt-0">
<Input
type="number"
error={!!fieldState.error}
Expand Down
4 changes: 2 additions & 2 deletions apps/deploy-web/src/components/sdl/PersistentStorage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const PersistentStorage: React.FunctionComponent<Props> = ({ currentServi
name={`services.${serviceIndex}.profile.persistentStorage`}
render={({ field, fieldState }) => (
<FormItem>
<div className="flex flex-col items-start sm:flex-row sm:items-center">
<div className="flex flex-col items-start lg:flex-row lg:items-center">
<div className="flex items-center">
<div className="flex items-center">
<MdStorage className="mr-2 text-2xl text-muted-foreground" />
Expand Down Expand Up @@ -75,7 +75,7 @@ export const PersistentStorage: React.FunctionComponent<Props> = ({ currentServi
</div>

{currentService.profile.hasPersistentStorage && (
<div className="mt-2 flex items-center sm:ml-4 sm:mt-0">
<div className="mt-2 flex items-center lg:ml-4 lg:mt-0">
<Input
type="number"
color="secondary"
Expand Down
4 changes: 2 additions & 2 deletions apps/deploy-web/src/components/sdl/StorageFormControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const StorageFormControl: React.FunctionComponent<Props> = ({ control, se
render={({ field, fieldState }) => (
<FormPaper>
<FormItem>
<div className="flex flex-col items-start sm:flex-row sm:items-center">
<div className="flex flex-col items-start lg:flex-row lg:items-center">
<div className="flex items-center">
<MdStorage className="mr-2 text-2xl text-muted-foreground" />
<strong className="text-sm">Ephemeral Storage</strong>
Expand All @@ -61,7 +61,7 @@ export const StorageFormControl: React.FunctionComponent<Props> = ({ control, se
</CustomTooltip>
</div>

<div className="mt-2 flex items-center sm:ml-4 sm:mt-0">
<div className="mt-2 flex items-center lg:ml-4 lg:mt-0">
<Input
type="number"
color="secondary"
Expand Down

0 comments on commit c9d3b45

Please sign in to comment.