1
0
Fork 0

Show 'View post' if 1 media in modal

This commit is contained in:
Lim Chee Aun 2023-11-04 15:36:51 +08:00
parent 5f50df1721
commit 5038e1988d
2 changed files with 6 additions and 1 deletions

View file

@ -1301,6 +1301,9 @@ button.carousel-dot:is(.active, [disabled].active) .icon {
body:has(.status-deck) .media-post-link {
display: none;
}
.media-modal-count-1 .button-label {
display: inline;
}
/* ✨ New */
body:has(.media-modal-container + .status-deck) .media-post-link {

View file

@ -103,7 +103,9 @@ function MediaModal({
}, []);
return (
<div class="media-modal-container">
<div
class={`media-modal-container media-modal-count-${mediaAttachments?.length}`}
>
<div
ref={carouselRef}
tabIndex="0"