From 813b55745523dd3a983db8d7e36230662ef05b6e Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 25 May 2024 17:55:18 +0200 Subject: [PATCH] chore: improved card positioning --- src/components/Global/Card.vue | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/components/Global/Card.vue b/src/components/Global/Card.vue index 709edea..b7023d6 100644 --- a/src/components/Global/Card.vue +++ b/src/components/Global/Card.vue @@ -2,10 +2,9 @@
-
+
-
@@ -52,8 +51,12 @@ export default defineComponent({ left: 0; width: 100%; - height: 100vh; + height: 100%; z-index: 200; + + display: flex; + justify-content: center; + align-items: center; } .card-background { @@ -69,20 +72,16 @@ export default defineComponent({ } .card-body { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - z-index: 210; - overflow: auto; + position: relative; + + margin: 1em; + + background-color: #1a1a1a; + box-shadow: 0 0 15px 10px #0e0e0e; + max-height: 95vh; max-height: 95dvh; - box-shadow: 0 0 15px 10px #0e0e0e; - - & > :slotted(div) { - background-color: #1a1a1a; - width: 95vw; - } + overflow: auto; }