Browse Source

fix: sidebar corrections

pull/7753/head
DarkPhoenix2704 9 months ago
parent
commit
e1dd478ac2
  1. 4
      packages/nc-gui/components/nc/DateWeekSelector.vue
  2. 4
      packages/nc-gui/components/nc/MonthYearSelector.vue

4
packages/nc-gui/components/nc/DateWeekSelector.vue

@ -152,7 +152,7 @@ const paginate = (action: 'next' | 'prev') => {
class="flex items-center" class="flex items-center"
> >
<NcTooltip> <NcTooltip>
<NcButton v-if="!disablePagination" size="medium" type="secondary" @click="paginate('prev')"> <NcButton v-if="!disablePagination" size="small" type="secondary" @click="paginate('prev')">
<component :is="iconMap.doubleLeftArrow" class="h-4 w-4" /> <component :is="iconMap.doubleLeftArrow" class="h-4 w-4" />
</NcButton> </NcButton>
<template #title> <template #title>
@ -169,7 +169,7 @@ const paginate = (action: 'next' | 'prev') => {
>{{ currentMonthYear }}</span >{{ currentMonthYear }}</span
> >
<NcTooltip> <NcTooltip>
<NcButton v-if="!disablePagination" size="medium" type="secondary" @click="paginate('next')"> <NcButton v-if="!disablePagination" size="small" type="secondary" @click="paginate('next')">
<component :is="iconMap.doubleRightArrow" class="h-4 w-4" /> <component :is="iconMap.doubleRightArrow" class="h-4 w-4" />
</NcButton> </NcButton>
<template #title> <template #title>

4
packages/nc-gui/components/nc/MonthYearSelector.vue

@ -114,7 +114,7 @@ const compareYear = (date1: dayjs.Dayjs, date2: dayjs.Dayjs) => {
:class="{ :class="{
'!bg-brand-50 border-1 !border-brand-500': isMonthSelected(month), '!bg-brand-50 border-1 !border-brand-500': isMonthSelected(month),
}" }"
class="h-9 rounded-lg flex font-medium items-center justify-center hover:(border-1 border-gray-200 bg-gray-100) text-gray-900 cursor-pointer" class="h-9 rounded-lg flex items-center justify-center hover:(border-1 border-gray-200 bg-gray-100) text-gray-900 cursor-pointer"
@click="selectedDate = month" @click="selectedDate = month"
> >
{{ month.format('MMM') }} {{ month.format('MMM') }}
@ -127,7 +127,7 @@ const compareYear = (date1: dayjs.Dayjs, date2: dayjs.Dayjs) => {
:class="{ :class="{
'!bg-brand-50 !border-1 !border-brand-500': compareYear(year, selectedDate), '!bg-brand-50 !border-1 !border-brand-500': compareYear(year, selectedDate),
}" }"
class="h-9 rounded-lg flex font-medium items-center justify-center hover:(border-1 border-gray-200 bg-gray-100) text-gray-900 cursor-pointer" class="h-9 rounded-lg flex items-center justify-center hover:(border-1 border-gray-200 bg-gray-100) text-gray-900 cursor-pointer"
@click="selectedDate = year" @click="selectedDate = year"
> >
{{ year.format('YYYY') }} {{ year.format('YYYY') }}

Loading…
Cancel
Save