From f91a76e573e4639eba0ebe2683c38817243bfe6a Mon Sep 17 00:00:00 2001 From: UrloMythus Date: Mon, 15 Sep 2025 20:03:11 +0200 Subject: [PATCH] Fixed manifestbox lenght --- static/configure.py | 8 ++++++-- static/static.py | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/static/configure.py b/static/configure.py index b49a25a..6934bcf 100644 --- a/static/configure.py +++ b/static/configure.py @@ -136,9 +136,13 @@ CONFIGURE = """ padding: 2vh; background: rgba(255, 255, 255, 0.2); border-radius: 5px; - display: none; + display: none; /* Initially hidden */ text-align: left; - white-space: pre-wrap; + white-space: pre-wrap; /* Preserves whitespace and wraps text */ + overflow-wrap: break-word; /* Breaks long words to prevent overflow */ + word-wrap: break-word; /* For older browsers */ + max-width: 100%; /* Ensures it doesn't exceed the container width */ + border: 1px solid #ccc; /* Optional: Add a border for visibility */ } #generateManifestButton { background: #4CAF50; diff --git a/static/static.py b/static/static.py index f067542..bdcca0d 100644 --- a/static/static.py +++ b/static/static.py @@ -136,9 +136,13 @@ HTML = """ padding: 2vh; background: rgba(255, 255, 255, 0.2); border-radius: 5px; - display: none; + display: none; /* Initially hidden */ text-align: left; - white-space: pre-wrap; + white-space: pre-wrap; /* Preserves whitespace and wraps text */ + overflow-wrap: break-word; /* Breaks long words to prevent overflow */ + word-wrap: break-word; /* For older browsers */ + max-width: 100%; /* Ensures it doesn't exceed the container width */ + border: 1px solid #ccc; /* Optional: Add a border for visibility */ } #generateManifestButton { background: #4CAF50;