From 94246990bb1d71c2f1c6ca0f2805cbd10c62ec7f Mon Sep 17 00:00:00 2001 From: Reece Date: Wed, 2 Jul 2025 21:08:07 +0100 Subject: [PATCH] DPR scale fixes --- .../src/main/resources/static/css/general.css | 4 +- .../src/main/resources/static/css/navbar.css | 2 + .../resources/templates/fragments/common.html | 31 ++++++++++ .../src/main/resources/templates/home.html | 61 +++++++++++++------ 4 files changed, 76 insertions(+), 22 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..78c806267 100644 --- a/stirling-pdf/src/main/resources/static/css/navbar.css +++ b/stirling-pdf/src/main/resources/static/css/navbar.css @@ -270,6 +270,8 @@ span.icon-text::after { /* Mega Menu */ .dropdown-mega .dropdown-menu { width: 98%; + transform: scale(0.85); + transform-origin: top center; } .dropdown-mega .title { diff --git a/stirling-pdf/src/main/resources/templates/fragments/common.html b/stirling-pdf/src/main/resources/templates/fragments/common.html index 38e71f04f..a19cff8b7 100644 --- a/stirling-pdf/src/main/resources/templates/fragments/common.html +++ b/stirling-pdf/src/main/resources/templates/fragments/common.html @@ -23,6 +23,37 @@ diff --git a/stirling-pdf/src/main/resources/templates/home.html b/stirling-pdf/src/main/resources/templates/home.html index a6f343d3c..f964a5715 100644 --- a/stirling-pdf/src/main/resources/templates/home.html +++ b/stirling-pdf/src/main/resources/templates/home.html @@ -216,32 +216,53 @@