1
0
Fork 0
forked from alemi/upub

fix(web): proper sizing of attachments

This commit is contained in:
əlemi 2024-05-12 01:20:55 +02:00
parent d74af76b60
commit 987c450312
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 2 additions and 1 deletions

View file

@ -186,6 +186,7 @@
border: 3px solid #bf616a; border: 3px solid #bf616a;
padding: 5px; padding: 5px;
object-fit: cover; object-fit: cover;
box-sizing: border-box;
} }
img.expand, img.expand,
video.expand { video.expand {

View file

@ -28,7 +28,7 @@ pub fn Attachment(
view! { view! {
<p class="center"> <p class="center">
<img <img
class="attachment ml-1" class="attachment"
class:expand=expand class:expand=expand
src={move || if sensitive && !expand.get() { src={move || if sensitive && !expand.get() {
URL_SENSITIVE.to_string() URL_SENSITIVE.to_string()