From 4eeead208404edf45e319acac677c23a29df6a03 Mon Sep 17 00:00:00 2001 From: daeyeon ko Date: Wed, 8 Jan 2025 17:18:58 +0900 Subject: [PATCH] Refactor: changing resizer line to fatter when it hoverd (#5458) * refactor: changing resizer line to fatter when it hoverd Signed-off-by: daeyeon ko * refactor: modify the rendering position of the controller of the PVerticalLayout Signed-off-by: daeyeon ko * chore: chore Signed-off-by: daeyeon ko * style: style Signed-off-by: daeyeon ko --------- Signed-off-by: daeyeon ko --- .../vertical-layout/PVerticalLayout.vue | 182 ++++++++++-------- 1 file changed, 102 insertions(+), 80 deletions(-) diff --git a/packages/mirinae/src/layouts/vertical-layout/PVerticalLayout.vue b/packages/mirinae/src/layouts/vertical-layout/PVerticalLayout.vue index b1aec14be0..c831844c26 100644 --- a/packages/mirinae/src/layouts/vertical-layout/PVerticalLayout.vue +++ b/packages/mirinae/src/layouts/vertical-layout/PVerticalLayout.vue @@ -60,7 +60,11 @@ const state = reactive({ })), resizerStyle: computed(() => ({ left: `${state.width}px`, - 'border-left-width': state.hide ? 0 : '1px', + width: 'fit-content', + })), + resizerLineStyle: computed(() => ({ + // eslint-disable-next-line no-nested-ternary + width: state.hide ? 0 : state.isHover ? '2px' : '1px', })), mainStyle: computed(() => ({ width: state.isMobileSize ? '100%' : `calc( 100% - ${state.width}px )`, @@ -167,7 +171,6 @@ documentEventMount('resize', detectWindowResizing); onBeforeMount(() => { detectWindowResizing(); }); -