From 38134bffa041792260790264fe0e494d88dd79c0 Mon Sep 17 00:00:00 2001 From: Emma Date: Tue, 4 Oct 2022 01:08:26 -0400 Subject: [PATCH] Centering update prompt card (#2668) * Making the update prompt card fit inside the window * Centering the update promptCard using flex --- src/renderer/components/ft-prompt/ft-prompt.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/ft-prompt/ft-prompt.css b/src/renderer/components/ft-prompt/ft-prompt.css index dc95ddab..b49ed3a8 100644 --- a/src/renderer/components/ft-prompt/ft-prompt.css +++ b/src/renderer/components/ft-prompt/ft-prompt.css @@ -7,15 +7,18 @@ background-color: rgba(0, 0, 0, 0.7); z-index: 10; padding: 15px; + box-sizing: border-box; + display: flex; + flex-direction: column; + justify-content: center; } .promptCard { width: 95%; margin: 0; position: absolute; - top: 40%; - -ms-transform: translateY(-40%); - transform: translateY(-40%); + left: 2.5%; + box-sizing: border-box; } .center {