fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

how do I force the close button of the popup to be "fixed" in position

Open halukkaramete opened this issue 3 years ago • 2 comments

When you have long text, users scroll down naturally and this causes the X/Close button to also scroll away. Is there a way to keep it fixed so the users can always see that close option?

Screen Shot 2022-04-09 at 6 48 12 AM

I tried this but did not work:

.fancybox-slide--html .fancybox-close-small {
    color: currentColor;
    padding: 10px;
    right: 0;
    top: 0;
    **position: fixed/static/etc;**
}
Screen Shot 2022-04-09 at 6 54 15 AM

halukkaramete avatar Apr 09 '22 03:04 halukkaramete

Hi,

You could simply make inner wrapping element and make it scrollable instead of the main element.

fancyapps avatar Apr 12 '22 16:04 fancyapps

Clever work around. Thank you Janis.

halukkaramete avatar Apr 12 '22 22:04 halukkaramete