MediaAttachmentGrid: support click to reveal
This commit is contained in:
parent
1047a3b10d
commit
8cd95b9e90
2 changed files with 38 additions and 10 deletions
|
@ -6,16 +6,6 @@
|
|||
gap: 4px;
|
||||
contain: layout style;
|
||||
|
||||
&.sensitive>.cell> :where(img, video) {
|
||||
filter: blur(20px) saturate(0.2);
|
||||
}
|
||||
|
||||
>.cell> :where(img, video) {
|
||||
object-fit: contain;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
>.cell {
|
||||
max-height: 35vh;
|
||||
min-height: 40px;
|
||||
|
@ -33,5 +23,17 @@
|
|||
outline: 8px solid var(--media-color-accent, var(--tutu-color-surface-d));
|
||||
border-color: var(--media-color-accent, var(--tutu-color-surface-d));
|
||||
}
|
||||
|
||||
& > :where(img, video, .sensitive-placeholder) {
|
||||
object-fit: contain;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
& > .sensitive-placeholder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue