Skip to content

Commit b8851f0

Browse files
authored
fix: prevent horizontal form section info from overlapping form fields (#19189)
...on screens that are not wide enough to accommodate 2-column layout. closes #19055 Sticky positioning on form section info still works as expected on desktop: https://github.com/user-attachments/assets/e8f5b364-d20e-4248-acc6-848293947c92 Sticky positioning is no longer applied to form section info on tablet/mobile: https://github.com/user-attachments/assets/c52c6b04-7b73-457e-9d9e-0b461fff56ac
1 parent 8ba8b4f commit b8851f0

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)