From 3a71e9c135b74663f835fe2f6dc5f2454725d269 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Sat, 20 Jun 2026 22:04:48 +0100 Subject: [PATCH] Implemented the Floor Plans refinement pass. --- PlotLine/Views/FloorPlans/Edit.cshtml | 219 ++++++++++++++++---------- PlotLine/wwwroot/css/site.css | 103 ++++++++---- PlotLine/wwwroot/css/site.min.css | 2 +- 3 files changed, 212 insertions(+), 112 deletions(-) diff --git a/PlotLine/Views/FloorPlans/Edit.cshtml b/PlotLine/Views/FloorPlans/Edit.cshtml index 975b1fb..daecead 100644 --- a/PlotLine/Views/FloorPlans/Edit.cshtml +++ b/PlotLine/Views/FloorPlans/Edit.cshtml @@ -39,15 +39,11 @@ return string.Join(" ", classes.Distinct()); } - string TransitionIcon(string transitionType) => transitionType switch + string TransitionDetails(FloorPlanTransitionEditViewModel transition) { - FloorPlanTransitionTypes.Archway => "Arch", - FloorPlanTransitionTypes.StairsUp => "Up", - FloorPlanTransitionTypes.StairsDown => "Down", - FloorPlanTransitionTypes.Ladder => "Ldr", - FloorPlanTransitionTypes.Window => "Win", - _ => "Door" - }; + var details = $"{transition.FromLocationName} -> {transition.ToLocationName}\n{transition.TransitionType}"; + return string.IsNullOrWhiteSpace(transition.DisplayLabel) ? details : $"{details}\n{transition.DisplayLabel}"; + } }