From c4b8df2a1ee0c1381314359c1a26be139295ac17 Mon Sep 17 00:00:00 2001 From: Reece Browne <74901996+reecebrowne@users.noreply.github.com> Date: Thu, 8 May 2025 17:54:58 +0100 Subject: [PATCH] Auto scale (#3490) # Description of Changes Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --- ## Checklist ### General - [x] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [x] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [x] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [x] I have performed a self-review of my own code - [x] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details. --- src/main/resources/static/css/general.css | 3 +- src/main/resources/static/css/navbar.css | 4 +++ .../resources/templates/fragments/navbar.html | 2 +- src/main/resources/templates/home.html | 33 +++++++++++++------ 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/src/main/resources/static/css/general.css b/src/main/resources/static/css/general.css index b49bfb7ee..88e7a1b11 100644 --- a/src/main/resources/static/css/general.css +++ b/src/main/resources/static/css/general.css @@ -1,7 +1,8 @@ #page-container { - min-height: 100vh; + height: 100vh; display: flex; flex-direction: column; + overflow-x: clip; } #content-wrap { diff --git a/src/main/resources/static/css/navbar.css b/src/main/resources/static/css/navbar.css index f9b3f3072..31099cdf2 100644 --- a/src/main/resources/static/css/navbar.css +++ b/src/main/resources/static/css/navbar.css @@ -162,6 +162,7 @@ html[dir="rtl"] .lang-dropdown-item-wrapper { text-wrap: wrap; word-break: break-word; width: 80%; + font-size: large; } .close-icon { @@ -476,6 +477,9 @@ html[dir="rtl"] .dropdown-menu[data-bs-popper] { display: flex; gap: 30px; justify-content: center; + width: 140%; + position: relative; + left: -20%; } .feature-group { diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index 593d8c213..ca4ced807 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index 3842c1fe7..bba498db5 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -7,20 +7,18 @@ -
-
- - - - +
+ +

- + flex-direction: column;" + >

@@ -123,9 +121,10 @@
+ +
-
@@ -222,7 +221,21 @@ window.showSurvey = /*[[${showSurveyFromDocker}]]*/ true - + +