MediaAttachmentGrid: major layout revised
* Now the media preview use masonry layout * Supports preview video media
This commit is contained in:
parent
1a0a9d7e77
commit
de03e62783
2 changed files with 28 additions and 14 deletions
|
@ -222,12 +222,12 @@
|
|||
margin-top: 1em;
|
||||
margin-left: calc(var(--card-pad, 0) + var(--toot-avatar-size, 0) + 8px);
|
||||
margin-right: var(--card-pad, 0);
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
|
||||
> :where(img) {
|
||||
> :where(img, video) {
|
||||
max-height: 35vh;
|
||||
min-height: 40px;
|
||||
min-width: 40px;
|
||||
object-fit: contain;
|
||||
max-width: 100%;
|
||||
background-color: var(--tutu-color-surface-d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue