diff --git a/Iceshrimp.Frontend/Components/AttachmentComponent.razor b/Iceshrimp.Frontend/Components/AttachmentComponent.razor index b007f65e..0d9712ef 100644 --- a/Iceshrimp.Frontend/Components/AttachmentComponent.razor +++ b/Iceshrimp.Frontend/Components/AttachmentComponent.razor @@ -27,12 +27,14 @@ } else { - - - - @Attachment.Url.Split("/").Last() - - +
+
+ + + @Attachment.Url.Split("/").Last() + +
+
} @if (!string.IsNullOrWhiteSpace(Attachment.AltText)) diff --git a/Iceshrimp.Frontend/Components/AttachmentComponent.razor.css b/Iceshrimp.Frontend/Components/AttachmentComponent.razor.css index 638d232d..e560a545 100644 --- a/Iceshrimp.Frontend/Components/AttachmentComponent.razor.css +++ b/Iceshrimp.Frontend/Components/AttachmentComponent.razor.css @@ -26,11 +26,12 @@ audio.attachment { } .file { - display: block; + display: flex; + align-items: center; padding: 1rem; white-space: normal; - > a { + a { text-decoration: none; color: var(--notice-color); word-break: break-word;