Skip to content

Commit ac8ca94

Browse files
authored
fix: Shrinking animation panel when new keyframes are added (#5009)
## Description 1. What is this PR about (link the issue and add a short description) ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
1 parent 00b815a commit ac8ca94

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,11 @@ export const AnimationPanelContent = ({ onChange, value, type }: Props) => {
263263
<Grid
264264
gap={1}
265265
align={"center"}
266-
css={{ gridTemplateColumns: "1fr 1fr", padding: theme.panel.padding }}
266+
css={{
267+
gridTemplateColumns: "1fr 1fr",
268+
padding: theme.panel.padding,
269+
flexShrink: 0,
270+
}}
267271
>
268272
<Label htmlFor={fieldIds.fill}>Fill Mode</Label>
269273
<Label htmlFor={fieldIds.easing}>Easing</Label>
@@ -340,7 +344,11 @@ export const AnimationPanelContent = ({ onChange, value, type }: Props) => {
340344
<Grid
341345
gap={1}
342346
align={"center"}
343-
css={{ gridTemplateColumns: "2fr 1fr", padding: theme.panel.padding }}
347+
css={{
348+
gridTemplateColumns: "2fr 1fr",
349+
padding: theme.panel.padding,
350+
flexShrink: 0,
351+
}}
344352
>
345353
<Label htmlFor={fieldIds.rangeStartName}>Range Start</Label>
346354
<Label htmlFor={fieldIds.rangeStartValue}>Value</Label>

0 commit comments

Comments
 (0)