Browse Source

refactor(gui-v2): add dot between icons

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2819/head
Pranav C 2 years ago
parent
commit
2858720637
  1. 17
      packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue
  2. 4
      packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue
  3. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/ToggleDrawer.vue
  4. 9
      packages/nc-gui-v2/components/smartsheet/Toolbar.vue

17
packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue

@ -1,10 +1,11 @@
<script lang="ts" setup>
import MdiFlashIcon from '~icons/mdi/flash-outline'
import MdiMenuDownIcon from '~icons/mdi/menu-down'
import MdiDownloadIcon from '~icons/mdi/download-outline'
</script>
<template>
<v-dropdown>
<a-dropdown>
<a-button v-t="['c:actions']" class="nc-actions-menu-btn nc-toolbar-btn">
<div class="flex gap-1 align-center">
<MdiFlashIcon class="text-grey" />
@ -14,9 +15,19 @@ import MdiMenuDownIcon from '~icons/mdi/menu-down'
</div>
</a-button>
<template #overlay>
<div></div>
<div class="p-2 bg-white">
<a-menu>
<a-menu-item>
<div class="text-xs flex align-center gap-2">
<MdiDownloadIcon />
<!-- Download as CSV -->
{{ $t('activity.downloadCSV') }}
</div>
</a-menu-item>
</a-menu>
</div>
</template>
</v-dropdown>
</a-dropdown>
<!-- <div>
<v-menu open-on-hover bottom offset-y transition="slide-y-transition">
<template #activator="{ on }">

4
packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue

@ -27,9 +27,9 @@ const columns = computed(() =>
</script>
<template>
<a-input-search size="small" v-model:value="localValue" class="max-w-[250px]">
<a-input-search v-model:value="localValue" size="small" class="max-w-[250px]">
<template #addonBefore>
<a-select v-model:value="localField" :options="columns" style="width: 100px" class="!text-xs " size="small" />
<a-select v-model:value="localField" :options="columns" style="width: 100px" class="!text-xs" size="small" />
</template>
</a-input-search>
</template>

2
packages/nc-gui-v2/components/smartsheet-toolbar/ToggleDrawer.vue

@ -4,7 +4,7 @@ import MdiDoorOpenIcon from '~icons/mdi/door-open'
import MdiDoorClosedIcon from '~icons/mdi/door-closed'
const navDrawerOpened = ref(false)
const Icon = computed(()=> navDrawerOpened.value ? MdiDoorOpenIcon : MdiDoorClosedIcon)
const Icon = computed(() => (navDrawerOpened.value ? MdiDoorOpenIcon : MdiDoorClosedIcon))
</script>
<template>

9
packages/nc-gui-v2/components/smartsheet/Toolbar.vue

@ -10,10 +10,14 @@
<SmartsheetToolbarMoreActions />
<div class="flex-1" />
<SmartsheetToolbarLockMenu />
<div class="dot" />
<SmartsheetToolbarReload />
<div class="dot" />
<SmartsheetToolbarAddRow />
<div class="dot" />
<SmartsheetToolbarDeleteTable />
<SmartsheetToolbarToggleDrawer />
<div class="dot" />
<SmartsheetToolbarToggleDrawer class="mr-2" />
</div>
</template>
@ -21,4 +25,7 @@
:deep(.nc-toolbar-btn) {
@apply border-0 !text-xs font-semibold px-2;
}
.dot {
@apply w-[3px] h-[3px] bg-gray-300 mx-1 rounded-full;
}
</style>

Loading…
Cancel
Save