From 0d471a96ed3a7a438d2c17341cc6e344fc979018 Mon Sep 17 00:00:00 2001 From: moonszhang Date: Tue, 27 Feb 2024 15:29:56 +0800 Subject: [PATCH] =?UTF-8?q?style(editor):=20=E4=BF=AE=E6=94=B9floatbox=20?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/hooks/use-float-box.ts | 12 +++++++----- packages/editor/src/theme/sidebar.scss | 5 ----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/editor/src/hooks/use-float-box.ts b/packages/editor/src/hooks/use-float-box.ts index f65e7047..07e20242 100644 --- a/packages/editor/src/hooks/use-float-box.ts +++ b/packages/editor/src/hooks/use-float-box.ts @@ -1,12 +1,14 @@ import { computed, ComputedRef, ref, watch } from 'vue'; +interface State { + status: boolean; + top: number; + left: number; +} + export const useFloatBox = (slideKeys: ComputedRef) => { const floatBoxStates = ref<{ - [key in (typeof slideKeys.value)[number]]: { - status: boolean; - top: number; - left: number; - }; + [key in (typeof slideKeys.value)[number]]: State; }>( slideKeys.value.reduce( (total, cur) => ({ diff --git a/packages/editor/src/theme/sidebar.scss b/packages/editor/src/theme/sidebar.scss index 1d59d4ec..30c75a1d 100644 --- a/packages/editor/src/theme/sidebar.scss +++ b/packages/editor/src/theme/sidebar.scss @@ -72,7 +72,6 @@ } .m-editor-slide-list-box { - display: flex; min-width: 270px; min-height: 500px; max-height: 1024px; @@ -80,9 +79,5 @@ &:first-child { width: 100%; } - &:nth-of-type(2) { - width: 100%; - flex: 1; - } } }