-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Fix: Theme preview in Mobile Chrome, Safari #1683
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/BFAzBQc3zneuuviEnrAiqqYu6EEV |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3399977:
|
Can you provide a reproducible environment or repo? |
Concurred with @sy-records . |
@sy-records @Koooooo-7 the repo is linked at the top (https://github.com/iNuanfeng/docsify), and the vercel bot provided the live demo. I tested it (deleted a bunch of elements in devtools inspector) but was not able to reproduce: But I didn't try on an iPhone. Anyone else with an iPhone? |
It will reappear on the iPhone. |
@sy-records When the content of the document is too small, it will be reproduced |
你好,我的MR(#1683)中,指的是文档内容过少,没有撑满一屏长度的时候,左侧侧边栏会无法显示全。环境是iphone下的chrome
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年12月6日(星期一) 下午5:26
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [docsifyjs/docsify] Fix: Theme preview in Mobile Chrome, Safari (PR #1683)
It's normal for me to use iPhone to view.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I don't have that version of the device. I am using IOS15 and Chrome 97 is working fine. |
@sy-records did you try with a small amount of content? Your screen shows a lot of content beyond the end of the bottom of the screen. See our screenshots that have little content. |
Yes, I tested it with his repo. |
@sy-records but in your screenshot (below), I see full content. Can you post a screenshot with small (not tall) content?
|
@sy-records So, It may be a browser compatibility |
Hmm, yeah, just can't reproduce it yet. But, if this fixes your issue, I think it is safe to merge because our snapshot tests are passing. Wdyt @Koooooo-7 @sy-records ? |
@trusktr @sy-records @Koooooo-7 Thank you ! |
@iNuanfeng no prob! @Koooooo-7 @sy-records we should add iPhone/Android tests. I learned how to configure playwright for that yesterday. WIP.. |
Summary
I fix the sidebar style in mobile, when the body height is too small.
What kind of change does this PR introduce?
Bugfix
For any code change,
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
Related issue, if any:
Tested in the following browsers: