fix(frontend): ユーザー選択ダイアログが表示されない問題を修正

Fix #10809
This commit is contained in:
syuilo 2023-05-09 13:57:43 +09:00
parent e382f74bb3
commit 80619260c1
2 changed files with 15 additions and 4 deletions

View File

@ -11,6 +11,18 @@
- -
--> -->
## 13.x.x (unreleased)
### General
-
### Client
- Fix: ユーザー選択ダイアログが表示されない問題を修正
### Server
-
## 13.12.0 ## 13.12.0
### NOTE ### NOTE

View File

@ -1,6 +1,6 @@
<template> <template>
<MkModal ref="modal" :prefer-type="'dialog'" @click="onBgClick" @closed="$emit('closed')"> <MkModal ref="modal" :prefer-type="'dialog'" @click="onBgClick" @closed="$emit('closed')">
<div ref="rootEl" class="ebkgoccj" :style="{ width: `${width}px`, height: height ? `${height}px` : null }" @keydown="onKeydown"> <div ref="rootEl" class="ebkgoccj" :style="{ width: `${width}px`, height: `min(${height}px, 100%)` }" @keydown="onKeydown">
<div ref="headerEl" class="header"> <div ref="headerEl" class="header">
<button v-if="withOkButton" class="_button" @click="$emit('close')"><i class="ti ti-x"></i></button> <button v-if="withOkButton" class="_button" @click="$emit('close')"><i class="ti ti-x"></i></button>
<span class="title"> <span class="title">
@ -24,12 +24,12 @@ const props = withDefaults(defineProps<{
withOkButton: boolean; withOkButton: boolean;
okButtonDisabled: boolean; okButtonDisabled: boolean;
width: number; width: number;
height: number | null; height: number;
}>(), { }>(), {
withOkButton: false, withOkButton: false,
okButtonDisabled: false, okButtonDisabled: false,
width: 400, width: 400,
height: null, height: 500,
}); });
const emit = defineEmits<{ const emit = defineEmits<{
@ -84,7 +84,6 @@ defineExpose({
<style lang="scss" scoped> <style lang="scss" scoped>
.ebkgoccj { .ebkgoccj {
margin: auto; margin: auto;
max-height: 100%;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;