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

Introduce zoom control with tentative UI #791

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aamanrebello
Copy link
Contributor

On the visualizer, the proposed change is a percentage change indicator of how much the graph has been zoomed in on, along with buttons to provide a controlled adjustment of the zoom level. Suggestions of any kind are welcome.

Without pressing a zoom button the UI looks like:

image

and on hovering over a zoom button it looks like:

image

@aamanrebello aamanrebello requested a review from a team as a code owner January 12, 2025 14:31
@oliviajanejohns
Copy link
Contributor

Nice work!

<div className="toggles menu-horizontal">
<div className="label">
<span className="label label-text">Zoom: {(zoomLevel*100).toFixed(0)}%</span>
<button className='ms-1 ps-2 pe-2 zoom-button' onClick={zoomIn}>+</button>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use the daisyui styles? https://daisyui.com/components/button/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants