Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show the caption above the thumbnails strip? #2128

Open
acwolff opened this issue Oct 15, 2024 · 0 comments
Open

How to show the caption above the thumbnails strip? #2128

acwolff opened this issue Oct 15, 2024 · 0 comments

Comments

@acwolff
Copy link

acwolff commented Oct 15, 2024

If I display a thumbnails strip in the light box, the image caption is hidden by the thumbnails:
PS_problem

See also my test album

What should I do to show the captions above the thumbnails?

I tried to fix the problem in CSS with the z-index:

`/* caption */
.pswp__custom-caption {
position: absolute;
color: #ffffff;
left: 50%;
transform: translateX(-50%);
text-align: center;
background: rgba(49,84,110,1.0);
opacity: 1;
padding: 12px 8px;
border-radius: 4px;
width: calc(100% - 32px);
bottom: 0px;
z-index: 1000000;
}

div.photoSwipe_innerthumbs {
position: fixed;
bottom: 0;
width: 100%;
overflow-y: auto; /* Show vertical scrollbar */
text-align: center;
z-index: 200000;
}
div.photoSwipe_innerthumbs img {
cursor: pointer;
margin: 3px;
object-fit: cover;
}`

but it does not work. If I remove z-index: 200000; the thumbnails are invisible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant