Browse Source

fix(nc-gui): fixed width for dropdown btn

pull/7611/head
DarkPhoenix2704 7 months ago
parent
commit
c1050485f5
  1. 12
      packages/nc-gui/components/smartsheet/calendar/index.vue

12
packages/nc-gui/components/smartsheet/calendar/index.vue

@ -156,8 +156,16 @@ const headerText = computed(() => {
</NcTooltip>
<NcDropdown v-model:visible="calendarRangeDropdown" :auto-close="false" :trigger="['click']">
<NcButton size="small" type="secondary">
<div class="flex gap-2 items-center">
<NcButton
:class="{
'w-36': activeCalendarView === 'month',
'w-40': activeCalendarView === 'day',
'w-20': activeCalendarView === 'year',
}"
size="small"
type="secondary"
>
<div class="flex gap-2 justify-between items-center">
<span class="font-bold text-center text-brand-500">{{ headerText }}</span>
<component :is="iconMap.arrowDown" class="h-4 w-4 text-gray-700" />
</div>

Loading…
Cancel
Save