Browse Source

fix(gui-v2): column header menu improvements

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3172/head
mertmit 2 years ago
parent
commit
9368c62119
  1. 2
      packages/nc-gui-v2/components/smartsheet-header/Cell.vue
  2. 4
      packages/nc-gui-v2/components/smartsheet-header/Menu.vue
  3. 2
      packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue

2
packages/nc-gui-v2/components/smartsheet-header/Cell.vue

@ -24,7 +24,7 @@ function onVisibleChange() {
</script>
<template>
<div class="flex items-center w-full text-xs text-normal">
<div class="flex items-center w-full text-xs text-normal" :class="{ 'h-full': column }">
<SmartsheetHeaderCellIcon v-if="column" />
<span v-if="column" class="name" style="white-space: nowrap" :title="column.title">{{ column.title }}</span>
<span v-if="(column.rqd && !column.cdf) || required" class="text-red-500">&nbsp;*</span>

4
packages/nc-gui-v2/components/smartsheet-header/Menu.vue

@ -53,8 +53,8 @@ const setAsPrimaryValue = async () => {
</script>
<template>
<a-dropdown placement="bottomRight" :trigger="['hover']">
<MdiMenuDownIcon class="text-grey nc-ui-dt-dropdown" />
<a-dropdown placement="bottomRight" :trigger="['click']">
<MdiMenuDownIcon class="h-full text-grey nc-ui-dt-dropdown cursor-pointer outline-0" />
<template #overlay>
<a-menu class="shadow bg-white">
<a-menu-item @click="emit('edit')">

2
packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue

@ -101,7 +101,7 @@ function onVisibleChange() {
</script>
<template>
<div class="flex items-center w-full text-xs text-normal">
<div class="flex items-center w-full text-xs text-normal" :class="{ 'h-full': column }">
<SmartsheetHeaderVirtualCellIcon v-if="column" />
<a-tooltip placement="bottom">

Loading…
Cancel
Save