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