Explorer view creates transparency bar on mobile
Describe the bug When adding in the explorer view to mobile, a transparent gradient bar appears on the page in the middle of the content. The bar appears to show up regardless of where in the page you insert the explorer view, I tried adding it to the "beforebody" and "right" sections
To Reproduce
- add explorer view to mobile site via layout.ts
- load the page on mobile
- bar appears
Expected behavior A clear and concise description of what you expected to happen.
Screenshots and Source
Desktop (please complete the following information):
- Quartz Version: v4.2.2
nodeVersion: v21.6.1npmversion: 10.2.4- OS: iOS
- Browser: Safari
What bar are you referring to here?
seems like you just need to adjust the margin?
Here as well.
Oh I think it is overflow in CSS afaik.
I use the original CSS. Is there anything I can fix?
Hello, I confirm this issue on a vanilla installation.
The problem may be that the ::after isn't placed after the explorer-end. The height is incorrect in the box model in Web Developer Tools.
I tried fiddling with bass.scss:
ul.overflow,
ol.overflow {
...
&:after {
/* ... */
position: absolute;
/* ... */
but I couldn't get it to work.
I have also reproduced this behaviour using vanilla CSS. The only change I had made was adding Component.MobileOnly(Component.Explorer()), to :file_folder: quartz.layout.ts.
The issue appears to be that the ::after pseudo-element (a child of either ul.overflow or ol.overflow; the element that applies the linear gradient) uses position: absolute when its parent does not use position: relative. After adding the correct layout property to the parent, ::after was moved to the correct position.
Before
After
Shall I make a PR?