Search…

X3 Photo Gallery Support Forums

Search…
 
Osek64
Topic Author
Posts: 16
Joined: 11 Jan 2020, 08:15

Re: Gallery custom width

18 Sep 2025, 06:36

Thank you very much. 

So I tried it and it looks great...BUT. 
There appears to be a weird bug.  (first printscreen) 
When I applied the code to my custom CSS setting, it went exactly as expected, except for some reason it shrunks "menu/topbar" as well. 
Then I tried how it looks on a different pages than Home/index and found out that it moves every small aspect as well, and when I scroll down, part of the menu is missing as well as the right navigator button....Like if the page moved to the right. 
As I was looking for a reason, I found out that the only thing that seems to affect it is in Settings -> styles > layout - "wide topbar" is checked/ or unchecked. 
Because when I unchecked it, only the main body of the page changes its width, while everything else works normally, and I presume that is how it should be. I tried a few percentages ( even 50%) and when "wide topbar" is not checked, it affects only the body where the gallery is, and nothing more and gallery "shrunkes" nicely. 

I tried to use the code to one page only (manage -> index page -> page -> advanced -> page css), just to be sure it is happening only to that page, and it does.

( I used page background color plugin so the changes are more visible) 
widetoolbar_rogether.jpg
widetoolbar_rogether.jpg (959.88 KiB) Viewed 1170 times
NOTtoolbar_rogether.jpg
NOTtoolbar_rogether.jpg (516.2 KiB) Viewed 1170 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Gallery custom width

18 Sep 2025, 08:27

Ok, so I guess you have removed it again now? Makes it a bit hard to diagnose from screenshots, but I assume there might be some other element(s) that use the "wide" class. In such case, you could try to assign the class to be more specific:
Code
.gallery.wide {
...
}
If it causes the same issues, please could you keep it so I can diagnose it? Or if you don't want to keep it on your main page, just apply on a hidden test page?
 
Osek64
Topic Author
Posts: 16
Joined: 11 Jan 2020, 08:15

Re: Gallery custom width

19 Sep 2025, 15:22

oh...sorry, absolutely forgot to leave "wide topbar" checked, so you can look at it. 

Ok, I tried to change the code just for the gallery, and it fixed it. :heart_eyes:
After that, I tried different settings, percentages, margins, limits, changing background, and so on, just to test if it does something weird and looks like it works as intended 🤩 
You are absolutely amazing. :ok_hand::ok_hand:
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Gallery custom width

19 Sep 2025, 22:23

:clap: