Browse Source

Merge pull request #3214 from nocodb/fix/gui-v2-settings-modal-close-button-placement-improved

Settings modal close button placement improved
pull/3221/head
navi 2 years ago committed by GitHub
parent
commit
049d35ae16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      packages/nc-gui-v2/components/dashboard/settings/Modal.vue

18
packages/nc-gui-v2/components/dashboard/settings/Modal.vue

@ -13,6 +13,7 @@ import TeamFillIcon from '~icons/ri/team-fill'
import MultipleTableIcon from '~icons/mdi/table-multiple' import MultipleTableIcon from '~icons/mdi/table-multiple'
import NootbookOutline from '~icons/mdi/notebook-outline' import NootbookOutline from '~icons/mdi/notebook-outline'
import { useUIPermission, useVModel, watch } from '#imports' import { useUIPermission, useVModel, watch } from '#imports'
import MdiCloseIcon from '~icons/mdi/close'
interface Props { interface Props {
modelValue: boolean modelValue: boolean
@ -130,8 +131,21 @@ watch(
</script> </script>
<template> <template>
<a-modal v-model:visible="vModel" :footer="null" width="max(90vw, 600px)" @cancel="emits('update:modelValue', false)"> <a-modal
<a-typography-title class="ml-4 mb-2 select-none" type="secondary" :level="5">SETTINGS</a-typography-title> v-model:visible="vModel"
:footer="null"
width="max(90vw, 600px)"
:closable="false"
@cancel="emits('update:modelValue', false)"
>
<div class="flex flex-row justify-between w-full items-center mb-1">
<a-typography-title class="ml-4 select-none" type="secondary" :level="5">SETTINGS</a-typography-title>
<a-button type="text" class="!rounded-md border-none -mt-1.5 -mr-1" @click="vModel = false">
<template #icon>
<MdiCloseIcon class="cursor-pointer mt-1" />
</template>
</a-button>
</div>
<a-layout class="mt-3 modal-body flex"> <a-layout class="mt-3 modal-body flex">
<!-- Side tabs --> <!-- Side tabs -->

Loading…
Cancel
Save