Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: Shrinking animation panel when new keyframes are added (#5009)

Ivan Starkovac8ca945d514
diff --git a/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx b/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx
index 5661ff30a5..d505fb12d8 100644
--- a/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx
+++ b/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx
@@ -263,7 +263,11 @@ export const AnimationPanelContent = ({ onChange, value, type }: Props) => {
<Grid
gap={1}
align={"center"}
- css={{ gridTemplateColumns: "1fr 1fr", padding: theme.panel.padding }}
+ css={{
+ gridTemplateColumns: "1fr 1fr",
+ padding: theme.panel.padding,
+ flexShrink: 0,
+ }}
>
<Label htmlFor={fieldIds.fill}>Fill Mode</Label>
<Label htmlFor={fieldIds.easing}>Easing</Label>
@@ -340,7 +344,11 @@ export const AnimationPanelContent = ({ onChange, value, type }: Props) => {
<Grid
gap={1}
align={"center"}
- css={{ gridTemplateColumns: "2fr 1fr", padding: theme.panel.padding }}
+ css={{
+ gridTemplateColumns: "2fr 1fr",
+ padding: theme.panel.padding,
+ flexShrink: 0,
+ }}
>
<Label htmlFor={fieldIds.rangeStartName}>Range Start</Label>
<Label htmlFor={fieldIds.rangeStartValue}>Value</Label>