Topic-icon Login Modal Popup on Mobile devices in Portrait mode - does not fit on screen

Active Subscriptions:

None
I am not sure if this a SClogin Problem or a problem with our Joomla Template.
We display the login form as a modal pop-up it works fine on all devices except phones in Portrait mode where the pop-up does not display correctly (see screen shot attached)
Any ideas if this is a SCLogin or Template issue?
Thanks in advance
Attachments:
The topic has been locked.
Support Specialist
Which theme in SCLogin are you using? Can you give us a URL to the site so we can see the behavior in action? It'll be much easier to narrow down the issue, but my guess it's a CSS issue with the SCLogin module theme which either has a sizing issue or a conflict with your template.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Hi Melissa,
Thank you for responding so quickly, very much appreciated. To see our login module
go to
cirenopenair.org.uk 
and click on the Log in button
We use our own theme. I have attached the css from the theme in a zip file
The reason we did this was a recomendation you gave us 3 months ago see
www.sourcecoast.com/forums/sclogin-enhan...f-the-profile-button

Kind regards
David

 
Attachments:
The topic has been locked.
Support Specialist
2 years 1 month ago - 2 years 1 month ago #67876 by mel
Looking at the SCLogin default css, there's a fixed width on the div.modal element. The width is set to 560px with a margin left of -280px. In the browser dev tools, I changed the following and it seemed to size it properly when I previewed it on a mobile size.
div.modal {
width: 80%;
margin-left: -40%;
}


You'll want to target a specific screen size like
@media (max-width: 1120px) {
// CSS from above
}

[Edited to Add]
Actually, looking at our default.css file around line 36, there's a line already like this but max-width is 576px. Try changing it to 1120px instead and see if that works.

I'll put an issue in our tracker to test this fix for the default theme, but try changing that value in your theme to test now.

-Melissa
Last edit: 2 years 1 month ago by mel.
The topic has been locked.
Active Subscriptions:

None
Hi Melissa,
I changed the code as you suggested, but it made no difference. However, I may have misunderstood your instructions.
See screen shot of the changes I made. Are these what you meant?
Kind regards
David 

  
Attachments:
The topic has been locked.
Support Specialist
Yes, that's what I meant but when I go to your page I don't see that CSS. Can you temporarily disable JCH Optimize on the page or rebuild the CSS and then force a refresh of the CSS?

-Melissa
The topic has been locked.
Active Subscriptions:

None
Hi Melisa,
I tried what you said, but it made no difference. I then uninstalled JCH Optimize (we are at a quiet time at the moment, so not a problem) and tried again, but same result
I have attached updated version of my theme for you to look at.
Let me know if there is something else, I can check
Attachments:
The topic has been locked.
Support Specialist
On that div.modal, can you add the sourcecoast class, so it's div.modal.sourcecoast ? The template bootstrap.css width is still taking effect.
The topic has been locked.
Active Subscriptions:

None
Hi Melissa,
I updated the div.modal as you said.... Success!!!!
I have attached screen shot from my mobile phone in Portrait mode.
Thank you so much for helping me with this, great support.
Kind regards
David.

  
Attachments:
The topic has been locked.
Support Specialist
Thanks for letting us know. I'll make sure to put the updated css element in our themes.

-Melissa
The following user(s) said Thank You: davidunwin
The topic has been locked.