Browse Source

fix(nc-gui): select style fix

pull/7611/head
DarkPhoenix2704 10 months ago
parent
commit
035a4419c9
  1. 7
      packages/nc-gui/assets/style.scss
  2. 0
      packages/nc-gui/components/smartsheet/calendar/Cell.vue
  3. 20
      packages/nc-gui/components/smartsheet/calendar/SideMenu.vue
  4. 1
      packages/nc-gui/lang/en.json

7
packages/nc-gui/assets/style.scss

@ -545,6 +545,13 @@ a {
@apply bg-gray-300 bg-opacity-20;
}
.ant-select-item-option:hover{
@apply !bg-gray-100;
}
.ant-select-item-option-selected{
@apply !bg-white;
}
/* Hide the element with id nc-selected-item-icon */
.ant-select-selection-item #nc-selected-item-icon {
@apply hidden;

0
packages/nc-gui/components/smartsheet/calendar/Cell.vue

20
packages/nc-gui/components/smartsheet/calendar/SideMenu.vue

@ -2,7 +2,7 @@
import type { VNodeRef } from '@vue/runtime-core'
import { UITypes, isVirtualCol } from 'nocodb-sdk'
import dayjs from 'dayjs'
import { type Row, computed, isRowEmpty, ref } from '#imports'
import { type Row, computed, iconMap, isRowEmpty, ref } from '#imports'
const props = defineProps<{
visible: boolean
@ -347,10 +347,20 @@ onUnmounted(() => {
</a-input>
<NcSelect v-model:value="sideBarFilterOption" class="min-w-38 !text-gray-800" data-testid="nc-calendar-sidebar-filter">
<a-select-option v-for="option in options" :key="option.value" :value="option.value" class="!text-gray-800">
<NcTooltip :title="option.label" placement="top" show-on-truncate-only>
<template #title>{{ option.label }}</template>
{{ option.label }}
</NcTooltip>
<div class="flex items-center justify-between gap-2">
<div class="truncate flex-1">
<NcTooltip :title="option.label" placement="top" show-on-truncate-only>
<template #title>{{ option.label }}</template>
{{ option.label }}
</NcTooltip>
</div>
<component
:is="iconMap.check"
v-if="sideBarFilterOption === option.value"
id="nc-selected-item-icon"
class="text-primary w-4 h-4"
/>
</div>
</a-select-option>
</NcSelect>
</div>

1
packages/nc-gui/lang/en.json

@ -1091,6 +1091,7 @@
"length59Required": "The length exceeds the max 59 characters",
"noNewNotifications": "You have no new notifications",
"noRecordFound": "Record not found",
"noRecordsFound": "No records found",
"rowDeleted": "Record deleted",
"saveChanges": "Do you want to save the changes?",
"tooLargeFieldEntity": "The field is too large to be converted to {entity}",

Loading…
Cancel
Save