Skip to content

Fix: Theme preview in Mobile Chrome, Safari - #1683

Merged
trusktr merged 2 commits into
docsifyjs:developfrom
iNuanfeng:develop
Dec 10, 2021
Merged

Fix: Theme preview in Mobile Chrome, Safari#1683
trusktr merged 2 commits into
docsifyjs:developfrom
iNuanfeng:develop

Conversation

@iNuanfeng

Copy link
Copy Markdown
Contributor

Summary

I fix the sidebar style in mobile, when the body height is too small.

beforeafter
IMG_5942IMG_5943 2

What kind of change does this PR introduce?

Bugfix

For any code change,

  • Related documentation has been updated if needed
  • Related tests have been updated or tests have been added

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue, if any:

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

@vercel

vercelBot commented Dec 6, 2021

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/BFAzBQc3zneuuviEnrAiqqYu6EEV
✅ Preview: https://docsify-preview-git-fork-inuanfeng-develop-docsify-core.vercel.app

@codesandbox-ci

codesandbox-ciBot commented Dec 6, 2021

Copy link
Copy Markdown

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:

SandboxSource
docsify-templateConfiguration

@sy-records

Copy link
Copy Markdown
Member

Can you provide a reproducible environment or repo?

@Koooooo-7

Copy link
Copy Markdown
Member

Concurred with @sy-records .

@trusktr

Copy link
Copy Markdown
Member

@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:

Capture

But I didn't try on an iPhone. Anyone else with an iPhone?

@sy-records

Copy link
Copy Markdown
Member

It's normal for me to use iPhone to view.

image

@Koooooo-7Koooooo-7 added the wait for information something is not clear, waiting for the author of the issue/pr label Dec 6, 2021
@iNuanfeng

iNuanfeng commented Dec 7, 2021

Copy link
Copy Markdown
ContributorAuthor

@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:

Capture

But I didn't try on an iPhone. Anyone else with an iPhone?

It will reappear on the iPhone.
My IOS version is 13.4.1
The chrome version on my iPhone is 87.0.4280.163

@iNuanfeng

iNuanfeng commented Dec 7, 2021

Copy link
Copy Markdown
ContributorAuthor

@sy-records When the content of the document is too small, it will be reproduced

@iNuanfeng

iNuanfeng commented Dec 7, 2021 via email

Copy link
Copy Markdown
ContributorAuthor

@sy-records

Copy link
Copy Markdown
Member

I don't have that version of the device.

I am using IOS15 and Chrome 97 is working fine.

https://github.com/iNuanfeng/iNuanfeng.github.io

@trusktr

Copy link
Copy Markdown
Member

@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.

@sy-records

Copy link
Copy Markdown
Member

Yes, I tested it with his repo.

@trusktr

trusktr commented Dec 7, 2021

Copy link
Copy Markdown
Member

@sy-records but in your screenshot (below), I see full content. Can you post a screenshot with small (not tall) content?

It's normal for me to use iPhone to view.

image

@sy-records

Copy link
Copy Markdown
Member

image

@iNuanfeng

Copy link
Copy Markdown
ContributorAuthor

@sy-records So, It may be a browser compatibility

@trusktr

Copy link
Copy Markdown
Member

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
trusktr merged commit 47cd3b6 into docsifyjs:developDec 10, 2021
@iNuanfeng

Copy link
Copy Markdown
ContributorAuthor

@trusktr@sy-records@Koooooo-7 Thank you !

@trusktr

Copy link
Copy Markdown
Member

@iNuanfeng no prob!

@Koooooo-7@sy-records we should add iPhone/Android tests. I learned how to configure playwright for that yesterday. WIP..

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wait for informationsomething is not clear, waiting for the author of the issue/pr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@iNuanfeng@sy-records@Koooooo-7@trusktr