Okay
  Public Ticket #3484633
Margins between portfolio items
Closed

Comments

  •  1
    sofiane started the conversation

    Hello,

    I've just finished my website but I discovered the following problem when I removed the Maintenance mode :

    There are little margins between each portfolio item and I don't know how to make them disappear completely.

    3606416208.png

    What's even weirder is that each time I resize my browser, the margins disappear, as well as the horizontal scrollbar.

    8401144782.png

    I tried every option in the back office that might have helped, but none did. The problem also occurs when I change the number of items per row. If this can help, every thumbnail has a 1:1 ratio (1000x1000px).


    I'd appreciate any help you can provide regarding this issue.

    Thanks in advance, have a great day!


  • [deleted] replied

    Hi sofiane,

    Strange, I can't see any spacing between portfolio projects and a horizontal scrollbar, I tested this in Chrome, Firefox and Safari browsers (see video).

    Maybe you have already fixed this?

  •  1
    sofiane replied

    Hi Ylli, thank you for answering.
    I haven't done anything to fix it, the problem still occurs on my side both in Google Chrome and Microsoft Edge, I haven't tested on Firefox and Safari though.

    Have you tried with the browser in full screen? Here are videos on both browsers so that you can see.
    When I resize the browser or do a Ctrl-/Ctrl+, the margins disappear but they come back each time I refresh...

    Attached files:  Chrome_1.mp4
      Edge_1.mp4

  • [deleted] replied

    Hi sofiane,

    I have a 32-inch monitor, I tested this again in Chrome, Edge, Firefox, and Safari but the problem that you are reporting is not happening (see video).

    I tried different screen sizes as you can see, and also I told my colleague to test this on a 16-inch laptop screen and he says that the problem is not happening.

    Can you please check this on a different computer? It can happen that you have any browser extension that may cause the issue...

    Thanks!

  •  1
    sofiane replied

    Hi Ylli,

    I don't have other screens but I asked some friends to try on their desktops.

    One has the bug on all browsers (27-inch) except on Edge (pics 1 and 2), another one doesn't have the bug, she has a smaller screen

    I have no idea on why it does so only for certain screens, but maybe it has to do with the way the portfolio columns are define, if it's with percentages maybe ?

    Not sure if you will be able to experience the bug on tour side, but I hope you can help me with it. Thanks in advance 🙏🏼

    Attached files:  20230925_111349.jpg
      20230925_111354.jpg

  •  15
    hahni replied

    I tested also with Chrome on Windows and the problem is still there - If i go to developer mode in chrome the problem is not there because the browser resizes. On reload it's still there - i think it's a resizing problem on first load and reload if not resized.

    Attached files:  Screenshot (277).png
      Screenshot (278).png
      Screenshot (279).png

  •  1
    sofiane replied

    Thank you for testing on your side André!

  • [deleted] replied

    It seems that this problem is only happening on Windows devices. We don't have any windows devices in the office but I will try my best to test this on a windows device this week.

    Thanks for your understanding.

  •  1
    sofiane replied

    Thank you Ylli, I look forward to your answer.

    Have a nice day !

  •  1
    sofiane replied

    Hello!

    I tried something with ChatGPT, which suggested some JS to simulate a resize after the page loads, and it works perfectly! Here it is, if it can help someone else:

    function custom_js() {
        echo '<script>
            window.addEventListener("load", function() {
                setTimeout(function() {
                    window.dispatchEvent(new Event("resize"));
                }, 100);
            });
        </script>';
    }

    Thank you for your time, have a nice day.

  • [deleted] replied

    I'm very happy that this is resolved. I will save this code in case any other user has the same problemsmile.png

    Thanks!