Skip to content

Fix padding of input box for mobile browsers #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2022

Conversation

seongjinme
Copy link
Contributor

Currently there's something look less ideal on mobile browsers when using Backpack template. Unlike on PC, you can see the extra gaps between borders and text in the input field on mobile as in the screenshot below. (including Safari, Chrome, Firefox, etc.) It is taken from the Live demo page.

Padding issue

This PR fixes the issue by fixing CSS values given for #sge-input.

/* Before fixing */
#sge-input {
    ...
    width: 100px;
    ...
}

/* After fixing */
#sge-input {
    ...
    width: 100%;
    padding: 0 0.25em 0 0;
    ...
}

You can see the expected result in the screenshot below. (taken from my website)

Expected result

@gmfmi
Copy link
Owner

gmfmi commented Mar 18, 2022

Hi @seongjinme!

Thank you very much for that PR, super clear 🙏

At first, I was surprised because I was unable to reproduce the issue on my Android mobile (chrome/firefox). I borrowed an iPhone to give it a try and, in fact, the issue only related to iOS devices. Thanks for pointing it out.

Before merging the PR, I will just add the fix to the original file (in the src directory) and do some packaging to release a new version and make it available to everybody.

side notes: I Google translated your blog and I really liked your articles about Ghost setup (I also use Docker Compose for mine) 😃

@gmfmi gmfmi merged commit f74f3ea into gmfmi:master Mar 18, 2022
@seongjinme
Copy link
Contributor Author

seongjinme commented Mar 19, 2022

Hi @gmfmi,

I want to apologize for causing confusion because of overlooking the tests in Android devices while checking the issue. I'm relieved that it helped though, and I'd like to tell you that I'm truly humbled by your well-made projects. Thank you for your kind reply.

PS: Also, thank you for visiting my blog! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants