Skip to content

Commit 75ccd00

Browse files
Azir-11honghuangdc
authored andcommitted
fix(projects): resolve width abnormal issue of NColorPicker.
1 parent 85d5f13 commit 75ccd00

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/layouts/modules/theme-drawer/modules/appearance/modules/theme-color.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ const swatches: string[] = [
6868
{{ $t('theme.appearance.themeColor.followPrimary') }}
6969
</NCheckbox>
7070
</template>
71-
<NColorPicker
72-
class="w-90px"
73-
:value="themeStore.themeColors[key]"
74-
:disabled="key === 'info' && themeStore.isInfoFollowPrimary"
75-
:show-alpha="false"
76-
:swatches="swatches"
77-
@update:value="handleUpdateColor($event, key)"
78-
/>
71+
<div class="w-90px">
72+
<NColorPicker
73+
:value="themeStore.themeColors[key]"
74+
:disabled="key === 'info' && themeStore.isInfoFollowPrimary"
75+
:show-alpha="false"
76+
:swatches="swatches"
77+
@update:value="handleUpdateColor($event, key)"
78+
/>
79+
</div>
7980
</SettingItem>
8081
</div>
8182
</template>

0 commit comments

Comments
 (0)