@using Iceshrimp.Shared.Schemas @if (NoteBase.Cw != null) {
@NoteBase.Cw
} @if (NoteBase.Cw == null && OverLength) {
@if (NoteBase.Attachments.Count > 0) { }
} @if (NoteBase.Cw == null && OverLength == false) {
@if (NoteBase.Attachments.Count > 0) { }
} @code { [Parameter] public required NoteBase NoteBase { get; set; } [Parameter] public required bool OverLength { get; set; } [Parameter] public bool Indented { get; set; } = false; private static int MaxHeight => 500; private bool Truncate { get; set; } = true; private bool CwToggle { get; set; } = true; private void ToggleCw() { CwToggle = !CwToggle; StateHasChanged(); } private void ToggleTruncate() { Truncate = !Truncate; } }