AI-Studio/app/MindWork AI Studio/Components/PreviewBeta.razor.cs

22 lines
761 B
C#
Raw Normal View History

2024-12-03 14:24:40 +00:00
using Microsoft.AspNetCore.Components;
namespace AIStudio.Components;
2025-04-27 07:06:05 +00:00
public partial class PreviewBeta : MSGComponentBase
2025-03-29 17:40:17 +00:00
{
[Parameter]
public bool ApplyInnerScrollingFix { get; set; }
/// <summary>
/// Additional class names for the chip itself, separated by space.
/// </summary>
/// <remarks>
/// The default is the margin every caller relied on before this parameter existed, because the
/// chip usually sits on a line of its own above a heading. A header which puts it beside the
/// heading instead passes an empty value.
/// </remarks>
[Parameter]
public string ChipClass { get; set; } = "mb-3";
2025-03-29 17:40:17 +00:00
private string Classes => this.ApplyInnerScrollingFix ? "InnerScrollingFix" : string.Empty;
}