From c7e82a47e98bde7ea98ac256734e8f5139b35289 Mon Sep 17 00:00:00 2001 From: jessikitty Date: Thu, 21 May 2026 09:36:57 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20Preview.cshtml=20=E2=80=94=20replace=20@?= =?UTF-8?q?:=20syntax=20with=20@Html.Raw=20for=20CSS=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Views/Slides/Preview.cshtml | 70 +++++++++++++++++++++++++++++-------- 1 file changed, 56 insertions(+), 14 deletions(-) diff --git a/Views/Slides/Preview.cshtml b/Views/Slides/Preview.cshtml index b151a4e..862c6d1 100644 --- a/Views/Slides/Preview.cshtml +++ b/Views/Slides/Preview.cshtml @@ -1,6 +1,11 @@ @model Slide @{ Layout = null; + var bgStyle = $"background: {Model.BackgroundColor ?? "#1a1a2e"};"; + if (!string.IsNullOrEmpty(Model.BackgroundImage)) + { + bgStyle += $" background-image: url('{Model.BackgroundImage}'); background-size: cover; background-position: center;"; + } } @@ -11,32 +16,69 @@ Close - @if (Model.SlideType == SlideType.Content) {
@Html.Raw(Model.Content ?? "")
} - else if (Model.SlideType == SlideType.Embed) { } - else if (Model.SlideType == SlideType.IcsCalendar) { -

Upcoming Events

Loading...

+ + @if (Model.SlideType == SlideType.Content) + { +
@Html.Raw(Model.Content ?? "")
+ } + else if (Model.SlideType == SlideType.Embed) + { + + } + else if (Model.SlideType == SlideType.IcsCalendar) + { +
+

Upcoming Events

+

Loading calendar...

+
}