mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Show 'View post' if 1 media in modal
This commit is contained in:
parent
5f50df1721
commit
5038e1988d
2 changed files with 6 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue