From 73e4c70e138673e990982ec614210f96396b8ce9 Mon Sep 17 00:00:00 2001 From: ConnorYoh <40631091+ConnorYoh@users.noreply.github.com> Date: Mon, 21 Jul 2025 11:54:59 +0100 Subject: [PATCH 1/3] Improved scaling of navbar for page-view and redact (#3978) # Description of Changes --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] 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/devGuide/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/devGuide/DeveloperGuide.md#6-testing) for more details. --------- Co-authored-by: Connor Yoh --- app/core/src/main/resources/templates/fragments/common.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/src/main/resources/templates/fragments/common.html b/app/core/src/main/resources/templates/fragments/common.html index f5fdbfa9d..d3b888a1d 100644 --- a/app/core/src/main/resources/templates/fragments/common.html +++ b/app/core/src/main/resources/templates/fragments/common.html @@ -115,7 +115,7 @@ // Set CSS custom property for mobile navbar scaling (for sidebar positioning) // Use the ACTUAL scaled height, not a fixed assumption - const baseHeight = 60; + const baseHeight = 64; const actualScaledHeight = baseHeight * navScale; document.documentElement.style.setProperty('--navbar-height', `${actualScaledHeight}px`); From 048277483bff0a4cdf7ae583e399aa66a4a21bac Mon Sep 17 00:00:00 2001 From: ConnorYoh <40631091+ConnorYoh@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:06:21 +0100 Subject: [PATCH 2/3] Fix search scroll bar issue on navbar (#3998) Limit mobile drop downs to 1/3 screen height Closes #3996 ### UI Changes ( {5866A763-EE40-4E8B-B186-8FD28927F053} {9395DF85-6FE0-4359-AA81-A657AC17DF15} --------- Co-authored-by: Connor Yoh --- app/core/src/main/resources/static/css/navbar.css | 11 +++++++---- .../main/resources/templates/fragments/navbar.html | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/core/src/main/resources/static/css/navbar.css b/app/core/src/main/resources/static/css/navbar.css index 047957b6d..20cd19176 100644 --- a/app/core/src/main/resources/static/css/navbar.css +++ b/app/core/src/main/resources/static/css/navbar.css @@ -251,6 +251,13 @@ html[dir="rtl"] .lang-dropdown-item-wrapper { border-left: 2px solid var(--md-nav-color-on-separator); } +.scroll-lock-y { + overflow-y: auto; + max-height: 30vh; + overscroll-behavior-y: contain; + -webkit-overflow-scrolling: touch; +} + /* Responsive adjustments */ @media (min-width: 1200px) { .lang-dropdown-item-wrapper .dropdown-item { @@ -258,14 +265,10 @@ html[dir="rtl"] .lang-dropdown-item-wrapper { } .scroll-lock-y { - overflow-y: auto; max-height: 80vh; - overscroll-behavior-y: contain; - -webkit-overflow-scrolling: touch; } } - .dropdown-item .icon-text { text-wrap: wrap; word-break: break-word; diff --git a/app/core/src/main/resources/templates/fragments/navbar.html b/app/core/src/main/resources/templates/fragments/navbar.html index 773810a5a..e5aea9345 100644 --- a/app/core/src/main/resources/templates/fragments/navbar.html +++ b/app/core/src/main/resources/templates/fragments/navbar.html @@ -163,7 +163,7 @@ expand_more