Skip to content
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

Overscroll issue inline / inline block styles need to be fine-tuned for mobile devices #11

Open
realdennis opened this issue Nov 23, 2019 · 0 comments

Comments

@realdennis
Copy link

Looks like we need to modify some style for mobile devices, to prevent the x-axis overscroll,
You can also check this issue by this script:

[...document.all].filter(el=>el.getClientBoundingRect().width > window.innerWidth); 
// It will return the expand elements array

According this thread #2 , I know the stylesheets are not in this repository, I'll comment some temp solution in this issue.

Issue 1:

If there are <iframe> element in article, it will make expand more than 100% width, cause iframe is a inline element, so we need to add box-sizing: border-box; or display: block; to prevent the unexpected expand.

iframe before
iframe after

Issue 2:

I figure out there is a similar issue on our board, it due to some inline-block are in the <a class"board"> tag, it also make the width expand over, I thought there are a short-code workaround is change the style of this tag from display: block to display: table.
original block
using table

Issue 3:

Also an expand issue in <span> tag which for ascii color in title / article / signature, it'll allow the children expand to more than screen width, but I do not think it could solve without breaking change...

span unexpected expand

If these are expected user experience, please tell me and close issue.

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

No branches or pull requests

1 participant