fix command center getting cut off

This commit is contained in:
tglide committed 2023-08-23 09:41:53 +01:00
1 parent c1ad8ef305
commit 1b2a2939ac
1 file changed
+7 -6
+7 -6
View File
@@ -411,20 +411,21 @@
// Elements
.card {
position: absolute;
--top: clamp(64px, 10vh, 400px);
top: var(--top);
left: 50%;
translate: -50%;
display: flex;
flex-direction: column;
width: var(--width, 42.5rem);
max-width: 100%;
min-height: var(--min-height);
max-height: var(--max-height, 32rem);
max-height: min(calc(100vh - var(--top) - 4rem), var(--max-height, 32rem));
overflow: hidden;
padding: 0;
position: absolute;
top: clamp(128px, 15vh, 400px);
left: 50%;
translate: -50%;
border-radius: 0.5rem;
border: 1px solid var(--cmd-center-border);
background: var(--cmd-center-bg);