From 7d7ea4c34b3fc24cfd5587b70690160abab4993e Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 4 Mar 2024 10:30:09 -0500 Subject: [PATCH] remove div wrapper in body in Static render mode --- Oqtane.Client/UI/Routes.razor | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Oqtane.Client/UI/Routes.razor b/Oqtane.Client/UI/Routes.razor index 9c876544..051f7f21 100644 --- a/Oqtane.Client/UI/Routes.razor +++ b/Oqtane.Client/UI/Routes.razor @@ -16,11 +16,20 @@ { @if (string.IsNullOrEmpty(_installation.Message)) { -
+ if (PageState.RenderMode == RenderModes.Static) + { -
+ } + else + { +
+ + + +
+ } } else { @@ -54,7 +63,7 @@ HttpContext HttpContext { get; set; } private bool _initialized = false; - private string _display = ""; + private string _display = "display: none;"; private Installation _installation = new Installation { Success = false, Message = "" }; private PageState _pageState { get; set; } @@ -66,11 +75,6 @@ _pageState = PageState; } - if (RenderMode == RenderModes.Interactive) - { - _display = "display: none;"; - } - SiteState.AntiForgeryToken = AntiForgeryToken; SiteState.AuthorizationToken = AuthorizationToken; SiteState.RemoteIPAddress = (_pageState != null) ? _pageState.RemoteIPAddress : "";