Uh oh!
There was an error while loading. Please reload this page.
fix: the coverpage image display error - #1514
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/2T9dXDvB9KVK1CsYLPCoVSuJeR4L |
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 6997df8:
|
jhildenbiddle
commented
Mar 11, 2021
@sy-records How have we verified this fix? All of the screenshots appear to be on Chrome for Android. |
sy-records
commented
Mar 12, 2021
I used ios safari also recurred, so the fix was made. |
| height 100% | ||
| width 100% | ||
| height 100vh | ||
| width 100vw |
There was a problem hiding this comment.
If we do this, due to how vw works, we need to verify that the page does not start scrolling sideways, because 100vw does not account for scrollbar width. See this:
Can you add screenshots in this PR?
jhildenbiddle
commented
Feb 2, 2022
There are a few issues with the existing CSS and the changes in this PR.
I can't edit your PR nor can I comment on unmodified lines here on GitHub so I've copy/pasted the updated CSS (Stylus) below. I'm also happy to create a separate PR to address the issue if preferred. section.coverpositionrelativealign-itemscenterbackground-positioncentercenterbackground-repeatno-repeatbackground-sizecovermin-height100vhwidth100%displaynone&.showdisplayflex&.has-mask.maskbackground-color$color-bgopacity0.8positionabsolutetop0bottom0width100%.cover-mainflex1margin-20px16px0text-aligncenterposition: relative&:first-childmargin-top1em&:last-childmargin-top1emacolorinherittext-decorationnone&:hovertext-decorationnonepline-height1.5remmargin1em0h1colorinheritfont-size2.5remfont-weight300margin0.625rem02.5rempositionrelativetext-aligncenteradisplayblocksmallbottom-0.4375remfont-size1rempositionabsoluteblockquotefont-size1.5remtext-aligncenterulline-height1.8list-style-typenonemargin1emautomax-width500pxpadding0.cover-main>p:last-childaborder-colorvar(--theme-color, $color-primary)
border-radius2remborder-stylesolidborder-width1pxbox-sizingborder-boxcolorvar(--theme-color, $color-primary)
displayinline-blockfont-size1.05remletter-spacing0.1remmargin0.5rem1rempadding0.75em2remtext-decorationnonetransitionall0.15sease&:last-childbackground-colorvar(--theme-color, $color-primary)
color#fff&:hovercolorinheritopacity0.8&:hovercolorinheritblockquote>p>aborder-bottom2pxsolidvar(--theme-color, $color-primary)
transitioncolor0.3s&:hovercolorvar(--theme-color, $color-primary)
|
sy-records
commented
Feb 2, 2022
@jhildenbiddle You can submit a PR. |
Summary
fix#381 (comment)
What kind of change does this PR introduce? (check at least one)
If changing the UI of default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx], where "xxx" is the issue number)You have tested in the following browsers: (Providing a detailed version will be better.)
If adding a new feature, the PR's description includes:
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Screenshots
click