Skip to content

Commit

Permalink
Fix toolbox in vue
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Jan 22, 2025
1 parent 427bb56 commit ad8e267
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions packages/survey-creator-vue/src/toolbox/ToolboxCategory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,38 @@
'svc-toolbox__category--empty': category.empty,
}"
>
<div
class="svc-toolbox__category-header"
@click="category.toggleState()"
v-key2click
:class="{
'svc-toolbox__category-header--collapsed':
toolbox.canCollapseCategories,
}"
>
<span class="svc-toolbox__category-title">{{ category.title }}</span>
<div className="svc-toolbox__category-header-wrapper">
<div
v-if="toolbox.canCollapseCategories"
class="svc-toolbox__category-header__controls"
class="svc-toolbox__category-header"
@click="category.toggleState()"
v-key2click
:class="{
'svc-toolbox__category-header--collapsed':
toolbox.canCollapseCategories,
}"
>
<div className="svc-toolbox__category-header-wrapper">
<span class="svc-toolbox__category-title">{{ category.title }}</span>
<div
v-if="toolbox.canCollapseCategories"
class="svc-toolbox__category-header__controls"
>
<div className="svc-toolbox__category-header-wrapper">
<SvComponent
:is="'sv-svg-icon'"
:iconName="'icon-arrow-down'"
class="svc-toolbox__category-header__button svc-string-editor__button--expand"
:size="'auto'"
v-show="category.collapsed"
></SvComponent>
</div>
<SvComponent
:is="'sv-svg-icon'"
:iconName="'icon-arrow-down'"
class="svc-toolbox__category-header__button svc-string-editor__button--expand"
:iconName="'icon-arrow-up'"
class="svc-toolbox__category-header__button svc-string-editor__button--collapse"
:size="'auto'"
v-show="category.collapsed"
v-show="!category.collapsed"
></SvComponent>
</div>
<SvComponent
:is="'sv-svg-icon'"
:iconName="'icon-arrow-up'"
class="svc-toolbox__category-header__button svc-string-editor__button--collapse"
:size="'auto'"
v-show="!category.collapsed"
></SvComponent>
</div>
</div>
<SvComponent
Expand Down

0 comments on commit ad8e267

Please sign in to comment.