1
0
Fork 0
forked from alemi/upub

fix(web): video max sizing, cursor

This commit is contained in:
əlemi 2024-04-29 02:42:59 +02:00
parent 9faae6f627
commit a664a0372f
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 5 additions and 5 deletions

View file

@ -154,11 +154,10 @@
img.inline-avatar {
max-height: 2em;
}
p.box {
.box {
border: 3px solid #bf616a;
width: 100%;
}
p.cursor {
.cursor {
cursor: pointer;
}
video.attachment {
@ -176,6 +175,7 @@
video.expand {
height: unset;
max-height: 55vh;
max-width: 100%;
object-fit: contain;
}
div.tl-header {

View file

@ -40,7 +40,7 @@ pub fn Attachment(
"video" =>
view! {
<p class="center cursor box ml-1"
<div class="center cursor box ml-1"
on:click=move |_| set_expand.set(!expand.get())
title={object.name().unwrap_or_default().to_string()}
>
@ -48,7 +48,7 @@ pub fn Attachment(
<source src={href.clone()} type={media_type} />
<a href={href} target="_blank">audio clip</a>
</video>
</p>
</div>
}.into_view(),
"audio" =>