From d35056c6644f7b7448d2ced84e11aa93d39020c5 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 11 Jun 2021 18:34:18 +0530 Subject: [PATCH] Better way of centering profile mode --- assets/css/common/profile-mode.css | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/assets/css/common/profile-mode.css b/assets/css/common/profile-mode.css index 0e84da55..6826d960 100644 --- a/assets/css/common/profile-mode.css +++ b/assets/css/common/profile-mode.css @@ -5,11 +5,8 @@ } .main .profile { - position: absolute; - left: 0; - right: 0; align-items: center; - height: 80%; + min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2)); text-align: center; }