diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-11 21:09:35 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-11 21:09:35 +0900 |
| commit | a88e486468b53145d7745411db02fe507ddffb78 (patch) | |
| tree | 08d4726422ef4d30ccb67f3f8b5275e00f800707 /src/client/components/ui | |
| parent | Resolve #7425 (diff) | |
| download | sharkey-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.vue | 7 |
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'], |