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;
|
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 {
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue