Skip to content

Commit 25ebf92

Browse files
committed
fix: prevent horizontal form section info from overlapping form fields
1 parent 760dc8b commit 25ebf92

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

site/src/components/Form/Form.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,13 @@ const styles = {
159159
position: "initial" as const,
160160
},
161161
}),
162-
formSectionInfoHorizontal: {
162+
formSectionInfoHorizontal: (theme) => ({
163163
maxWidth: 312,
164-
position: "sticky",
165-
},
164+
165+
[theme.breakpoints.up("lg")]: {
166+
position: "sticky",
167+
},
168+
}),
166169
formSectionInfoTitle: (theme) => ({
167170
fontSize: 20,
168171
color: theme.palette.text.primary,

0 commit comments

Comments
 (0)