From 0a402e562bdcee15bc4423e1f61927d54470ef0f Mon Sep 17 00:00:00 2001
From: Reece Browne <74901996+reecebrowne@users.noreply.github.com>
Date: Fri, 4 Jul 2025 18:58:57 +0100
Subject: [PATCH] Scaling fixes (#3868)
# 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
- [ ] 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/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/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/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.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---
.../src/main/resources/static/css/general.css | 4 +-
.../src/main/resources/static/css/navbar.css | 7 +-
.../resources/templates/fragments/common.html | 83 ++++++++++++++++-
.../resources/templates/fragments/footer.html | 2 +-
.../resources/templates/fragments/navbar.html | 2 +-
.../src/main/resources/templates/home.html | 89 ++++++++++++++-----
6 files changed, 157 insertions(+), 30 deletions(-)
diff --git a/stirling-pdf/src/main/resources/static/css/general.css b/stirling-pdf/src/main/resources/static/css/general.css
index 88e7a1b11..f94eef705 100644
--- a/stirling-pdf/src/main/resources/static/css/general.css
+++ b/stirling-pdf/src/main/resources/static/css/general.css
@@ -16,9 +16,8 @@
.navbar {
height: auto;
- /* Adjusts height automatically based on content */
white-space: nowrap;
- /* Prevents wrapping of navbar contents */
+ width: 100vw;
}
/* TODO enable later
@@ -30,6 +29,7 @@
margin-right: auto;
}*/
+
html[dir="ltr"] * {
direction: ltr;
}
diff --git a/stirling-pdf/src/main/resources/static/css/navbar.css b/stirling-pdf/src/main/resources/static/css/navbar.css
index 31099cdf2..384d54186 100644
--- a/stirling-pdf/src/main/resources/static/css/navbar.css
+++ b/stirling-pdf/src/main/resources/static/css/navbar.css
@@ -269,7 +269,9 @@ span.icon-text::after {
/* Mega Menu */
.dropdown-mega .dropdown-menu {
- width: 98%;
+ width: 100%;
+ left: 0 !important;
+ right: auto !important;
}
.dropdown-mega .title {
@@ -477,9 +479,8 @@ html[dir="rtl"] .dropdown-menu[data-bs-popper] {
display: flex;
gap: 30px;
justify-content: center;
- width: 140%;
+ width: 100%;
position: relative;
- left: -20%;
}
.feature-group {
diff --git a/stirling-pdf/src/main/resources/templates/fragments/common.html b/stirling-pdf/src/main/resources/templates/fragments/common.html
index 26a7971ff..0f9db7b76 100644
--- a/stirling-pdf/src/main/resources/templates/fragments/common.html
+++ b/stirling-pdf/src/main/resources/templates/fragments/common.html
@@ -23,6 +23,87 @@
@@ -327,4 +408,4 @@
window.stirlingPDF.GoogleDriveAppId = /*[[${@GoogleDriveConfig.getAppId()}]]*/ null;
-
\ No newline at end of file
+
diff --git a/stirling-pdf/src/main/resources/templates/fragments/footer.html b/stirling-pdf/src/main/resources/templates/fragments/footer.html
index 01616ddca..2d8465bf5 100644
--- a/stirling-pdf/src/main/resources/templates/fragments/footer.html
+++ b/stirling-pdf/src/main/resources/templates/fragments/footer.html
@@ -1,7 +1,7 @@