Skip to content
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

keeping sidebars and header visible on mobile view #949

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

404mike
Copy link
Contributor

@404mike 404mike commented Jan 5, 2024

Description of what you did:

Modified CSS rules to keep sidebar and header visible when on mobile view. Relating to issue #938

Copy link

codesandbox bot commented Jan 5, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Jan 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 5, 2024 2:01pm

Copy link

codesandbox-ci bot commented Jan 5, 2024

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 125a86d:

Sandbox Source
React Configuration
uv-react-demo Configuration
uv-simple-example Configuration
uv-simple-example-with-url-adapter Configuration
uv-config-example Configuration
uv-nextjs-example Configuration

@@ -32,6 +32,9 @@ export class LeftPanel<
this.options.panelOpen
);

const viewportWidth: number = document.documentElement.clientWidth;
if(viewportWidth <= 767) return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the functionality that this provides, but I wonder if we can implement it in a more flexible way that avoids hard-coded magic numbers. Might it make sense to replace the panelOpen boolean configuration setting with a panelOpenMinWidth integer setting? Then it could be 0 to always open, some incredibly high number to always close, or a configurable breakpoint the rest of the time. What do you think? @edsilv?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Work in progress
Development

Successfully merging this pull request may close these issues.

3 participants