瀏覽代碼

refac: styling

Timothy J. Baek 8 月之前
父節點
當前提交
4cf777ab5a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/lib/components/common/Drawer.svelte
  2. 1 1
      src/lib/components/common/Modal.svelte

+ 1 - 1
src/lib/components/common/Drawer.svelte

@@ -60,7 +60,7 @@
 
 
 <div
 <div
 	bind:this={modalElement}
 	bind:this={modalElement}
-	class="modal fixed right-0 left-0 bottom-0 bg-black/60 w-full min-h-screen h-screen flex justify-center z-[9999] overflow-hidden overscroll-contain"
+	class="modal fixed right-0 left-0 bottom-0 bg-black/60 w-full h-screen max-h-[100dvh] flex justify-center z-[9999] overflow-hidden overscroll-contain"
 	in:fly={{ y: 100, duration: 100 }}
 	in:fly={{ y: 100, duration: 100 }}
 	on:mousedown={() => {
 	on:mousedown={() => {
 		show = false;
 		show = false;

+ 1 - 1
src/lib/components/common/Modal.svelte

@@ -61,7 +61,7 @@
 	<!-- svelte-ignore a11y-no-static-element-interactions -->
 	<!-- svelte-ignore a11y-no-static-element-interactions -->
 	<div
 	<div
 		bind:this={modalElement}
 		bind:this={modalElement}
-		class="modal fixed top-0 right-0 left-0 bottom-0 bg-black/60 w-full min-h-screen h-screen flex justify-center z-[9999] overflow-hidden overscroll-contain"
+		class="modal fixed top-0 right-0 left-0 bottom-0 bg-black/60 w-full h-screen max-h-[100dvh] flex justify-center z-[9999] overflow-hidden overscroll-contain"
 		in:fade={{ duration: 10 }}
 		in:fade={{ duration: 10 }}
 		on:mousedown={() => {
 		on:mousedown={() => {
 			show = false;
 			show = false;