Less radius for animated media

This commit is contained in:
Lim Chee Aun 2023-12-30 20:29:21 +08:00
parent 796b365fd8
commit 32d32b72f4
2 changed files with 12 additions and 1 deletions

View file

@ -358,7 +358,7 @@ function Media({
<Parent
class={`media ${className} media-${isGIF ? 'gif' : 'video'} ${
autoGIFAnimate ? 'media-contain' : ''
}`}
} ${hoverAnimate ? 'media-hover-animate' : ''}`}
data-orientation={orientation}
data-formatted-duration={
!showOriginal ? formattedDuration : undefined

View file

@ -940,6 +940,10 @@
}
.status.large .media-container.media-eq1 {
max-height: min(var(--height), 60vh);
.media-gif.media-contain {
border-radius: 2px;
}
}
.status.large
.media-container:not(.status-card .media-container).media-eq1
@ -1159,6 +1163,13 @@ body:has(#modal-container .carousel) .status .media img:hover {
.status .media-contain video {
object-fit: scale-down !important;
}
.status .media-eq1 .media-hover-animate {
transition: border-radius 0.15s ease-out;
&:hover {
border-radius: 2px;
}
}
/* .status .media-audio {
border: 0;
min-height: 0;