From 25ebf92c17be67ab103abfa324dcdf49295facec Mon Sep 17 00:00:00 2001 From: Andrew Aquino Date: Tue, 5 Aug 2025 22:28:33 +0000 Subject: [PATCH] fix: prevent horizontal form section info from overlapping form fields --- site/src/components/Form/Form.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/site/src/components/Form/Form.tsx b/site/src/components/Form/Form.tsx index faf900fb4f344..715f5ec008c5d 100644 --- a/site/src/components/Form/Form.tsx +++ b/site/src/components/Form/Form.tsx @@ -159,10 +159,13 @@ const styles = { position: "initial" as const, }, }), - formSectionInfoHorizontal: { + formSectionInfoHorizontal: (theme) => ({ maxWidth: 312, - position: "sticky", - }, + + [theme.breakpoints.up("lg")]: { + position: "sticky", + }, + }), formSectionInfoTitle: (theme) => ({ fontSize: 20, color: theme.palette.text.primary,