From 479dc0fc7f47426f12a2e3f81c85bb33b1076f51 Mon Sep 17 00:00:00 2001 From: Seesi Date: Sun, 12 Oct 2025 09:27:57 +0000 Subject: [PATCH 1/2] Fix paths for Bootstrap and jQuery in layout files --- src/Identity.API/Views/Shared/_Layout.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Identity.API/Views/Shared/_Layout.cshtml b/src/Identity.API/Views/Shared/_Layout.cshtml index d470953e4..8019e91c3 100644 --- a/src/Identity.API/Views/Shared/_Layout.cshtml +++ b/src/Identity.API/Views/Shared/_Layout.cshtml @@ -13,7 +13,7 @@ - + @@ -43,8 +43,8 @@ - - + + @RenderSection("scripts", required: false) From ba138329b51eb5a74a8ba64584de0ba12beb8b50 Mon Sep 17 00:00:00 2001 From: Seesi Date: Sun, 12 Oct 2025 09:39:25 +0000 Subject: [PATCH 2/2] refactor: implement sticky footer on orders/cart pages to prevent footer from floating when content is minimal --- src/WebApp/Components/Layout/MainLayout.razor | 24 ++++++++++++++----- .../Components/Layout/MainLayout.razor.css | 10 ++++++++ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/WebApp/Components/Layout/MainLayout.razor b/src/WebApp/Components/Layout/MainLayout.razor index ab7be4a3b..54719611b 100644 --- a/src/WebApp/Components/Layout/MainLayout.razor +++ b/src/WebApp/Components/Layout/MainLayout.razor @@ -1,13 +1,25 @@ @using eShop.WebApp.Components.Chatbot @inherits LayoutComponentBase - - -@Body - - - +@inject NavigationManager Navigation +
+
+ + @Body + +
+ +
An unhandled error has occurred. Reload 🗙
+ +@code { + private string GetLayoutClass() + { + var currentUrl = Navigation.ToBaseRelativePath(Navigation.Uri); + return currentUrl.StartsWith("user/orders") || currentUrl.StartsWith("cart") ? "layout-container sticky-footer-page" : + "layout-container"; + } +} \ No newline at end of file diff --git a/src/WebApp/Components/Layout/MainLayout.razor.css b/src/WebApp/Components/Layout/MainLayout.razor.css index df8c10ff2..0feaf966f 100644 --- a/src/WebApp/Components/Layout/MainLayout.razor.css +++ b/src/WebApp/Components/Layout/MainLayout.razor.css @@ -16,3 +16,13 @@ right: 0.75rem; top: 0.5rem; } + +.layout-container { + min-height: 100vh; + display: flex; + flex-direction: column; +} + +.layout-container.sticky-footer-page ::deep .eshop-footer { + margin-top: auto; +} \ No newline at end of file