From 66ef6a8da81e32dff549917885e8aed9a6eddfb6 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 23 Jun 2023 15:36:28 -0700 Subject: [PATCH] refactor: :recycle: refactor MkModalWindow for TS safety --- .../client/src/components/MkModalWindow.vue | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/client/src/components/MkModalWindow.vue b/packages/client/src/components/MkModalWindow.vue index a3dccb7644..31943d1f3e 100644 --- a/packages/client/src/components/MkModalWindow.vue +++ b/packages/client/src/components/MkModalWindow.vue @@ -10,20 +10,20 @@ ref="rootEl" class="ebkgoccj" :style="{ - width: `${width}px`, + width: `${props.width}px`, height: scroll ? height - ? `${height}px` + ? `${props.height}px` : null : height - ? `min(${height}px, 100%)` + ? `min(${props.height}px, 100%)` : '100%', }" tabindex="-1" >