From 0479f9af85896cf4a683a865fe242bf490bdf2b1 Mon Sep 17 00:00:00 2001 From: Alberto Monterroso <14013679+Albermonte@users.noreply.github.com> Date: Thu, 31 Aug 2023 22:37:35 -0400 Subject: [PATCH] Card height based on content instead of fixed height --- src/components/atoms/SheetModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/atoms/SheetModal.vue b/src/components/atoms/SheetModal.vue index 4d1c5a12..407e4b1f 100644 --- a/src/components/atoms/SheetModal.vue +++ b/src/components/atoms/SheetModal.vue @@ -114,7 +114,7 @@ function onCardDrag(progress: number) { const radius = (1 - progress) * props.initialBorderRadius style.value = { - height: `${props.initialHeight + heightDifference * progress}px`, + height: isOpen.value ? 'min-content' : `${props.initialHeight + heightDifference * progress}px`, marginBottom: `${(1 - progress) * props.initialGapToScreen}px`, borderBottomRightRadius: `${radius}px`, borderBottomLeftRadius: `${radius}px`,