From 2d0b228a46d2437cddead153d6355b7e25529127 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de>
Date: Thu, 24 Apr 2025 01:03:47 +0200
Subject: [PATCH] Disable scrolling background when modal is open

---
 src/styles/globals.scss | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/styles/globals.scss b/src/styles/globals.scss
index a87f1c8..0eb68c0 100644
--- a/src/styles/globals.scss
+++ b/src/styles/globals.scss
@@ -89,6 +89,11 @@ $link-decoration: none;
 	}
 }
 
+// Prevent background scrolling while modal is open
+html:has(> body.modal-open) {
+    overflow: hidden;
+}
+
 // table td, tr
 .table> :not(caption)>*>* {
 	background-color: inherit; // this fixes tables messing up background colors of parent elements
@@ -152,6 +157,14 @@ $link-decoration: none;
 	--toastify-toast-width: 600px;
 }
 
+.tooltip {
+    --bs-tooltip-max-width: 30em;
+}
+
+.white-space-pre-wrap {
+    white-space: pre-wrap !important;
+}
+
 
 .sneak-100-input {
 	border: 0;
-- 
GitLab