-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(explorer): collapsible mobile explorer #1471
base: v4
Are you sure you want to change the base?
Conversation
@aarnphm I suppose this is another PR with a breaking change, as the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc jacky on this.
Thanks for the review. I think most of your feedback is valid. I'll do some more experimenting to reduce redundant code/hacks. I have another implementation that is a lot more sophisticated, but requires the navigation tree to be included twice. I remember that this is something we explicitly want to avoid, mostly due to accessibility concerns. I'll ping you once I am satisfied with my changes. |
@aarnphm I believe I have addressed your feedback. Once the code changes are approved, I'll update the documentation and restore the default configuration ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc jacky on this as well 😄
Co-authored-by: Aaron Pham <[email protected]>
Here's a simple repro: Stephen-X@206f8bc. Feel free to pull my branch, it's just serving Quartz doc as test content plus a190cba. I think you merely introduced an additional |
I see. That is just a |
Yes, it's nested
|
You want me to make a change in order to fix your custom changes? I'll see if I can clean up the styling, but the explorer should always work on the default Quartz. If you want to fix your left sidebar without a grid layout, consider something like this |
Thanks, but I'm not sure if changing Yes I might go with your Thanks for your help! The mobile explorer may be a breaking change for grid-based setup, a major version bump might be needed? |
The sidebars are |
Debugging your website, I just realized there isn't an I think the problem is browsers can't calculate height correctly for If the solution can keep only the original 2 layers ( |
There is a reason for the change. It is needed to support mobile exporer without duplicating the entire explorer tree content. My own site is disregarding that requirement by just including it twice. I'll look into making changes to this PR. I'll keep you posted. |
Alright, I have an idea. The explorer doesn't have to expand on mobile, or can just slide it. |
@Stephen-X Hey, I have a new proposal for the mobile explorer. I want to slide it in from the side instead of dropping down/expanding. See below: Screencast.from.2024-10-25.18-33-46.webmWe're currently debating between making the top part sticky, so that it stays on top as the user scrolls down, similar to my own site. In the clip above this is not the case. If we were to make the top part sticky, it should probably be an option to configure in |
I think either looks nice (either sliding in from the left or from the top), although in the case of left sliding-in, it might look better if the hamburger menu rotates counterclockwise to go with the slide-in animation like a knob 😄 I personally made the left sidebar
Regarding the reported issue with the extra And now the file list is scrollable again in desktop mode, confirming my theory before about Here's what it looks like in mobile mode, I made some small adjustments to styling to make the icon vertically centered again after I'm not entirely sure what you were referring to regarding "duplicating the entire explorer tree content" if the container is removed. Please feel free to refer to the commit to see if there's anything breaking with the change. With Btw, I also changed |
Screencast.from.2024-10-26.17-58-29.webm |
} | ||
} | ||
} | ||
|
||
.explorer { | ||
display: flex; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you verify this is not related to your use of a customized grid layout for your left sidebar over Quartz's default flex for the left sidebar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't alter the flex layout in mobile mode.
I think this is easily reproducible if you make the title bar more squeezy by having a longer page title or use "responsive" dimension in Chromium browsers and make the page narrower. It's really related to the explorer
container itself being a flex
container causing its containing component (the hamburger button) to shrink.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I'll look into it.
I asked because your previous suggested change didn't work in default Quartz.
I'll let you know my conclusion soon.
Once again, thanks for the reports!
Bug report: Because explorer is hidden in folder index pages, the mobile explorer button also disappears from title bar. |
Can you check if this stil l occurs when the explorer is added to listpages in |
Sorry that was a careless bug report. My setup mistake while testing the PR in different cases. I forgot I made explorer |
Screencast.from.2024-10-01.23-34-59.webm
Progress