Browse Source

fix(nc-gui): select style fix

pull/7611/head
DarkPhoenix2704 9 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; @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 */ /* Hide the element with id nc-selected-item-icon */
.ant-select-selection-item #nc-selected-item-icon { .ant-select-selection-item #nc-selected-item-icon {
@apply hidden; @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 type { VNodeRef } from '@vue/runtime-core'
import { UITypes, isVirtualCol } from 'nocodb-sdk' import { UITypes, isVirtualCol } from 'nocodb-sdk'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { type Row, computed, isRowEmpty, ref } from '#imports' import { type Row, computed, iconMap, isRowEmpty, ref } from '#imports'
const props = defineProps<{ const props = defineProps<{
visible: boolean visible: boolean
@ -347,10 +347,20 @@ onUnmounted(() => {
</a-input> </a-input>
<NcSelect v-model:value="sideBarFilterOption" class="min-w-38 !text-gray-800" data-testid="nc-calendar-sidebar-filter"> <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"> <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> <div class="flex items-center justify-between gap-2">
<template #title>{{ option.label }}</template> <div class="truncate flex-1">
{{ option.label }} <NcTooltip :title="option.label" placement="top" show-on-truncate-only>
</NcTooltip> <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> </a-select-option>
</NcSelect> </NcSelect>
</div> </div>

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

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

Loading…
Cancel
Save