Skip to content

Commit b47f179

Browse files
authored
fix: hide chevron consistently when there are no items in the style panel section (#4524)
## Description Forgot to set the default for chevron to be hidden when there are no items and no colapsible property passed explicitely ## 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 c8c1268 commit b47f179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/builder/app/builder/features/style-panel/shared/style-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const RepeatedStyleSection = (props: {
8585
trigger={
8686
<SectionTitle
8787
inactive={dots.length === 0}
88-
collapsible={collapsible}
88+
collapsible={collapsible ?? dots.length !== 0}
8989
dots={getDots(styles)}
9090
suffix={
9191
<SectionTitleButton

0 commit comments

Comments
 (0)