From f9de2f15b0e9fe80d0f8b4b6f1eacb28fe9f24d4 Mon Sep 17 00:00:00 2001 From: Meghdad <61308304+MeghdadFadaee@users.noreply.github.com> Date: Wed, 15 Jul 2026 03:07:04 +0330 Subject: [PATCH] fix: keep player status dialog centered within viewport --- .gitignore | 1 + apps/web/src/styles.css | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 78f5350..30c1950 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ archive/ +screenshots/ .DS_Store .idea/ node_modules/ diff --git a/apps/web/src/styles.css b/apps/web/src/styles.css index 54bad1a..3b5487c 100644 --- a/apps/web/src/styles.css +++ b/apps/web/src/styles.css @@ -969,15 +969,18 @@ button:disabled, .player-status { position: absolute; z-index: 8; + box-sizing: border-box; display: flex; width: min(42rem, calc(100% - 2rem)); - min-height: 18rem; + min-height: min(18rem, calc(100% - 2rem)); + max-height: calc(100% - 2rem); + overflow-y: auto; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; - inset-block-start: 50%; - inset-inline-start: 50%; + top: 50%; + left: 50%; padding: 2rem; color: white; text-align: center; @@ -1003,6 +1006,7 @@ button:disabled, .player-status p, .player-status small { color: #c7ccda; + overflow-wrap: anywhere; } .status-symbol {