fix(web): proper sizing of attachments
This commit is contained in:
parent
d74af76b60
commit
987c450312
2 changed files with 2 additions and 1 deletions
|
@ -186,6 +186,7 @@
|
|||
border: 3px solid #bf616a;
|
||||
padding: 5px;
|
||||
object-fit: cover;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
img.expand,
|
||||
video.expand {
|
||||
|
|
|
@ -28,7 +28,7 @@ pub fn Attachment(
|
|||
view! {
|
||||
<p class="center">
|
||||
<img
|
||||
class="attachment ml-1"
|
||||
class="attachment"
|
||||
class:expand=expand
|
||||
src={move || if sensitive && !expand.get() {
|
||||
URL_SENSITIVE.to_string()
|
||||
|
|
Loading…
Reference in a new issue