From ce5485032ca8c842b401617cfb839d0a1e5ff976 Mon Sep 17 00:00:00 2001 From: Frank Tovar Date: Sat, 21 Mar 2026 10:36:22 +0100 Subject: [PATCH] Trim curation quick parse chrome --- .../Shared/CriticalCellCurationDialog.razor | 4 ++ .../Shared/CriticalCellQuickParseEditor.razor | 48 ++++++++++++------- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/src/RolemasterDb.App/Components/Shared/CriticalCellCurationDialog.razor b/src/RolemasterDb.App/Components/Shared/CriticalCellCurationDialog.razor index 84d6d6f..74920c6 100644 --- a/src/RolemasterDb.App/Components/Shared/CriticalCellCurationDialog.razor +++ b/src/RolemasterDb.App/Components/Shared/CriticalCellCurationDialog.razor @@ -66,8 +66,12 @@ IsBusy="IsReparsing" IsDisabled="IsSaving" ShowActionButton="false" + ShowSectionHeader="false" + ShowSourcePreview="false" + ShowExampleHint="false" ShowDescriptionEditor="false" ShowValidationSummary="false" + ShowLegend="false" ErrorMessage="@QuickParseErrorMessage" SectionClass="critical-editor-section critical-curation-quick-parse-section" /> } diff --git a/src/RolemasterDb.App/Components/Shared/CriticalCellQuickParseEditor.razor b/src/RolemasterDb.App/Components/Shared/CriticalCellQuickParseEditor.razor index 2c1dc14..7ecc267 100644 --- a/src/RolemasterDb.App/Components/Shared/CriticalCellQuickParseEditor.razor +++ b/src/RolemasterDb.App/Components/Shared/CriticalCellQuickParseEditor.razor @@ -8,24 +8,27 @@

@ErrorMessage

} -
-
-

Quick Parse Input

-

First line is the result prose. Later lines are base affixes or condition: ... lines with comma-separated shorthand.

+ @if (ShowSectionHeader) + { +
+
+

Quick Parse Input

+

First line is the result prose. Later lines are base affixes or condition: ... lines with comma-separated shorthand.

+
+ @if (ShowActionButton) + { + + }
- @if (ShowActionButton) - { - - } -
+ }
@@ -64,7 +67,10 @@ }
-

Example: Foe brings his guard up, frightened by your display. then +5, 1mp or w/o shield: glancing blow, +15, 3s, 3np.

+ @if (ShowExampleHint) + { +

Example: Foe brings his guard up, frightened by your display. then +5, 1mp or w/o shield: glancing blow, +15, 3s, 3np.

+ } @if (ShowLegend) { @@ -112,9 +118,15 @@ [Parameter] public bool ShowActionButton { get; set; } = true; + [Parameter] + public bool ShowSectionHeader { get; set; } = true; + [Parameter] public bool ShowSourcePreview { get; set; } = true; + [Parameter] + public bool ShowExampleHint { get; set; } = true; + [Parameter] public bool ShowLegend { get; set; } = true;