Browse Source

refactor(gui-v2): give fixed dropdown width

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2860/head
Pranav C 2 years ago
parent
commit
78b0f61b1f
  1. 6
      packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilter.vue
  2. 6
      packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue

6
packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilter.vue

@ -264,7 +264,7 @@ defineExpose({
<style scoped> <style scoped>
.nc-filter-grid { .nc-filter-grid {
display: grid; display: grid;
grid-template-columns: 18px 70px auto auto auto; grid-template-columns: 18px 70px auto 90px auto;
column-gap: 6px; column-gap: 6px;
row-gap: 6px; row-gap: 6px;
align-items: center; align-items: center;
@ -273,4 +273,8 @@ defineExpose({
:deep(.ant-btn, .ant-select, .ant-input) { :deep(.ant-btn, .ant-select, .ant-input) {
@apply "!text-xs"; @apply "!text-xs";
} }
:deep(.ant-select-item-option) {
@apply "!min-w-min";
}
</style> </style>

6
packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue

@ -1,9 +1,9 @@
<script lang="ts" setup> <script lang="ts" setup>
import { useRoute } from '#app'
import { computed } from '@vue/reactivity' import { computed } from '@vue/reactivity'
import { useClipboard } from '@vueuse/core' import { useClipboard } from '@vueuse/core'
import { ViewTypes } from 'nocodb-sdk' import { ViewTypes } from 'nocodb-sdk'
import { useToast } from 'vue-toastification' import { useToast } from 'vue-toastification'
import { useRoute } from '#app'
import { onMounted } from '#imports' import { onMounted } from '#imports'
import { useSmartsheetStoreOrThrow } from '~/composables/useSmartsheetStore' import { useSmartsheetStoreOrThrow } from '~/composables/useSmartsheetStore'
import { extractSdkResponseErrorMsg } from '~/utils/errorUtils' import { extractSdkResponseErrorMsg } from '~/utils/errorUtils'
@ -30,7 +30,6 @@ let isLoading = $ref(false)
// let activeSharedView = $ref(null) // let activeSharedView = $ref(null)
const sharedViewList = ref<SharedViewType[]>() const sharedViewList = ref<SharedViewType[]>()
const loadSharedViewsList = async () => { const loadSharedViewsList = async () => {
isLoading = true isLoading = true
const list = await $api.dbViewShare.list(meta.value?.id as string) const list = await $api.dbViewShare.list(meta.value?.id as string)
@ -57,7 +56,7 @@ const loadSharedViewsList = async () => {
onMounted(loadSharedViewsList) onMounted(loadSharedViewsList)
// todo: get correct dashboard url // todo: get correct dashboard url
const dashboardUrl = computed(() =>{ const dashboardUrl = computed(() => {
return `${location.origin}` return `${location.origin}`
}) })
@ -99,7 +98,6 @@ const deleteLink = async (id: string) => {
toast.error(await extractSdkResponseErrorMsg(e)) toast.error(await extractSdkResponseErrorMsg(e))
} }
} }
</script> </script>
<template> <template>

Loading…
Cancel
Save