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

Move layer visibility toggle to the left of the layer title and icon #487

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

Conversation

mfisher87
Copy link
Member

@mfisher87 mfisher87 commented Feb 22, 2025

Description

Resolves #244

Before:
image

After:
image

Keeping the button on the right raises questions about how to handle when the button overlaps with the text. After playing with it for a bit, I felt that having the button on the left is ideal. Especially as we move towards implementing #486, I feel having the button on the right misses an opportunity to convey information about grouping through indentation of the button. With the button on the right, the eye has to do more scanning from left-to-right.

image

Checklist

  • PR has a descriptive title and content.
  • PR description contains references to any issues the PR resolves, e.g. Resolves #XXX.
  • PR has one of the labels: documentation, bug, enhancement, feature, maintenance
  • Checks are passing.
    Failing lint checks can be resolved with:
    • pre-commit run --all-files
    • jlpm run lint

📚 Documentation preview: https://jupytergis--487.org.readthedocs.build/en/487/
💡 JupyterLite preview: https://jupytergis--487.org.readthedocs.build/en/487/lite

@mfisher87 mfisher87 added the bug Something isn't working label Feb 22, 2025
Copy link
Contributor

Binder 👈 Launch a Binder on branch mfisher87/jupytergis/move-visibility-toggle

Copy link
Contributor

github-actions bot commented Feb 22, 2025

Integration tests report: appsharing.space

@mfisher87
Copy link
Member Author

mfisher87 commented Feb 22, 2025

Boo to that linting rule 😆 whitespace can be an incredibly valuable tool for readability. Anyone feel strongly about changing it?

@mfisher87
Copy link
Member Author

please update snapshots

@arjxn-py
Copy link
Member

The snapshots didn't update, don't know why - I'd just ask the bot to please update snapshots again

@arjxn-py
Copy link
Member

arjxn-py commented Feb 25, 2025

Oh it fails again - https://github.com/geojupyter/jupytergis/actions/runs/13523809762/job/37789149195?pr=487#step:11:3347

I haven't looked in too deep yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Layer show/hide button gets pushed out of the left panel by the layer title
2 participants