refactor: full-width modal for search, transparent tabs

This commit is contained in:
liyasthomas
2021-08-29 09:44:46 +05:30
parent 16b9a2b06e
commit 647599e5aa
10 changed files with 63 additions and 49 deletions

View File

@@ -37,7 +37,6 @@
shadow-lg
text-left
w-full
p-4
transform
transition-all
inline-block
@@ -46,7 +45,10 @@
sm:max-w-md sm:align-middle
md:rounded-lg
"
:class="{ 'mt-24 md:mb-8': placement === 'top' }"
:class="[
{ 'mt-24 md:mb-8': placement === 'top' },
{ 'p-4': !fullWidth },
]"
>
<div
v-if="title"
@@ -64,7 +66,8 @@
</span>
</div>
<div
class="flex flex-col max-h-md py-2 overflow-y-auto hide-scrollbar"
class="flex flex-col max-h-md overflow-y-auto hide-scrollbar"
:class="{ 'py-2': !fullWidth }"
>
<slot name="body"></slot>
</div>
@@ -115,6 +118,10 @@ export default defineComponent({
type: String,
default: "top",
},
fullWidth: {
type: Boolean,
default: false,
},
},
setup() {
const { disableKeybindings, enableKeybindings } = useKeybindingDisabler()