refactor(ui): minor ui improvements

This commit is contained in:
liyasthomas
2021-09-20 21:33:36 +05:30
parent 44026fcd41
commit 9698932bde
9 changed files with 21 additions and 7 deletions

View File

@@ -9,7 +9,7 @@
>
<transition name="fade" appear>
<div
class="bg-primaryDark opacity-90 inset-0 transition fixed"
class="bg-primaryLight opacity-90 inset-0 transition fixed"
@touchstart="!dialog ? close() : null"
@touchend="!dialog ? close() : null"
@mouseup="!dialog ? close() : null"
@@ -34,7 +34,7 @@
<div
class="
bg-primary
shadow-lg
shadow-xl
text-left
w-full
transform
@@ -42,12 +42,12 @@
inline-block
align-bottom
overflow-hidden
sm:max-w-md sm:align-middle
md:rounded-lg
sm:align-middle sm:rounded-xl
"
:class="[
{ 'mt-24 md:mb-8': placement === 'top' },
{ 'p-4': !fullWidth },
maxWidth,
]"
>
<div
@@ -122,6 +122,10 @@ export default defineComponent({
type: Boolean,
default: false,
},
maxWidth: {
type: String,
default: "sm:max-w-lg",
},
},
setup() {
const { disableKeybindings, enableKeybindings } = useKeybindingDisabler()