summaryrefslogtreecommitdiff
path: root/src/client/components/ui
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-11 21:09:35 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-04-11 21:09:35 +0900
commita88e486468b53145d7745411db02fe507ddffb78 (patch)
tree08d4726422ef4d30ccb67f3f8b5275e00f800707 /src/client/components/ui
parentResolve #7425 (diff)
downloadsharkey-a88e486468b53145d7745411db02fe507ddffb78.tar.gz
sharkey-a88e486468b53145d7745411db02fe507ddffb78.tar.bz2
sharkey-a88e486468b53145d7745411db02fe507ddffb78.zip
Tweak UI
Diffstat (limited to 'src/client/components/ui')
-rw-r--r--src/client/components/ui/modal-window.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/components/ui/modal-window.vue b/src/client/components/ui/modal-window.vue
index ca17ae6093..90b803801d 100644
--- a/src/client/components/ui/modal-window.vue
+++ b/src/client/components/ui/modal-window.vue
@@ -1,6 +1,6 @@
<template>
<MkModal ref="modal" @click="$emit('click')" @closed="$emit('closed')">
- <div class="ebkgoccj _popup _narrow_" @keydown="onKeydown" :style="{ width: `${width}px`, height: height ? `${height}px` : null }">
+ <div class="ebkgoccj _popup _narrow_" @keydown="onKeydown" :style="{ width: `${width}px`, height: scroll ? (height ? `${height}px` : null) : (height ? `min(${height}px, 100%)` : '100%') }">
<div class="header">
<button class="_button" v-if="withOkButton" @click="$emit('close')"><Fa :icon="faTimes"/></button>
<span class="title">
@@ -61,6 +61,11 @@ export default defineComponent({
required: false,
default: true,
},
+ scroll: {
+ type: Boolean,
+ required: false,
+ default: true,
+ },
},
emits: ['click', 'close', 'closed', 'ok'],