Posted: April 23, 2021 at 8:52 am
Hi Tony We are selling tickets and have found that, if the buyer is on mobile (or any other reasonably narrow width screen), the white box which appears on the grey background after you’ve selected your tickets isn’t showing because the left hand margin is hard coded to be 152px wide which means that it’s displaying off the edge of the narrower screens. Here’s the code I picked up: <div id=”cart-results-modal-wrap-dv” style=”position: fixed; top: 5.1805px; left: 582.25px; margin: 0px;”>× Please could you let me know what the fix is so that we can fix this issue? I will try to change the left margin to 1em or something, but I’m sure you’ve got a more elegant solution! Many thanks. |
|
Hi Dee, Have you already applied a fix for this as I don’t see any issue on your site on mobile? |
|
Hi Tony, yes, I’ve done this:/*23/4/21 DSS emergency fix, left hand margin too great, so spilling off narrow screens*/ which has fixed the problem for me and my tests. But one user (on a samsung) says he still can’t see it. Is this the best solution? It seems strange to have a fixed left positioning like this. Do you think it’s coming from the theme or from EE? Thanks |
|
That fix throws the desktop view out as it pushes the modal over to the left. So a couple of questions here. In your opening post, you mentioned the left margin is hardcoded to use 152px, where do you see this? The code you posted in your opening post has a What I’m seeing on your site is it works In portrait mode, but in landscape mode, there is no ‘top’ value, so the element is actually hidden away at the bottom of the page, not pushed over to the left/right Try removing the code you added above and replace it with this:
Does it work correctly for you then? Note I’m using Chrome Desktop emulating mobile devices and also using Chrome remote debugging to connect to a Samsung Galaxy S8 to compare, both show the same results for me. I’m not sure why the JavaScript calculations are off on that page but as your the only user I’ve seen report this specific issue I’m guessing it’s something within the theme. |
|
Hello Tony, thanks very much for taking the time to check this through and for explaining it to me. You’re right, there’s no left margin and the value I’d quoted was wrong – apologies, I was in a rush. I’m now using the fix: #cart-results-modal-wrap-dv {top:1px!important; left: 1px!important;} which does the trick of keeping the white modal box in view under all circumstances, I can see. I’m sure you’re right – it must be the theme. I’m happy to live with this if it works and at least tickets can be booked. Many thanks for your help & thoughts. Regards |
|
You can wrap the above in a media query to only set those on small screens:
(You likely don’t need the The strange part is the fact that I’m getting different results here, I’ve had no issue with the left, only top and I’m not sure why. |
|
Many thanks for your help Tony. Dee |
|
The support post ‘White cart box on grey background not visible on mobile (narrow screens)’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.