+
}
@@ -207,7 +207,7 @@
Wrap="@(AssistantComponentPropHelper.GetWrap(stack.Wrap) ?? Wrap.Wrap)"
Spacing="@stack.Spacing"
Class="@stack.Class"
- Style="@this.GetOptionalStyle(this.GetRawStyle(stack))">
+ Style="@this.GetOptionalStyle(stack.Style)">
@this.RenderChildren(stack.Children)
}
@@ -262,7 +262,7 @@
case AssistantComponentType.PROVIDER_SELECTION:
if (component is AssistantProviderSelection providerSelection)
{
-
+
}
@@ -271,7 +271,7 @@
if (component is AssistantProfileSelection profileSelection)
{
var selection = profileSelection;
-
+
}
@@ -371,14 +371,6 @@
}
;
- private string? GetRawStyle(IAssistantComponent component)
- {
- if (!component.Props.TryGetValue("Style", out var rawStyle) || rawStyle is null)
- return null;
-
- return rawStyle as string ?? rawStyle.ToString();
- }
-
private string? BuildPaperStyle(AssistantPaper paper)
{
List
styles = [];
@@ -390,7 +382,7 @@
this.AddStyle(styles, "max-width", paper.MaxWidth);
this.AddStyle(styles, "min-width", paper.MinWidth);
- var customStyle = this.GetRawStyle(paper);
+ var customStyle = paper.Style;
if (!string.IsNullOrWhiteSpace(customStyle))
styles.Add(customStyle.Trim().TrimEnd(';'));