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

Add Reset HUD State Button (Updated Design) #81

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

AtlantisPleb
Copy link
Contributor

@AtlantisPleb AtlantisPleb commented Aug 28, 2024

This pull request addresses issue #79: Add button or hotkey to reset HUD state.

Changes made:

  1. Added a new resetHUDState function to the pane store in store/pane.ts.
  2. Created a new ResetHUDButton component in components/ResetHUDButton.tsx.
  3. Modified app/layout.tsx to include the ResetHUDButton component.
  4. Updated the ResetHUDButton component to use Shad UI's Button component and the IconRefresh icon.
  5. Positioned the Reset HUD button in the bottom-left corner of the screen.

These changes provide a simple, visually consistent button to reset the HUD state, allowing users to easily recover from situations where panes may have moved off-screen or become difficult to manage.

The button is now a small, circular icon button in the bottom-left corner of the screen, which fits better with the overall design of the application.

Copy link

vercel bot commented Aug 28, 2024

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

Name Status Preview Comments Updated (UTC)
v2 ❌ Failed (Inspect) Aug 28, 2024 1:49am

@AtlantisPleb AtlantisPleb changed the title Add Reset HUD State Button Add Reset HUD State Button (Fixed Build Error) Aug 28, 2024
@AtlantisPleb AtlantisPleb changed the title Add Reset HUD State Button (Fixed Build Error) Add Reset HUD State Button (Updated Design) Aug 28, 2024
Copy link

The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information.

@AtlantisPleb AtlantisPleb merged commit 8e7855f into main Aug 28, 2024
1 of 3 checks passed
@AtlantisPleb AtlantisPleb deleted the issue-79-add-reset-hud-state branch August 28, 2024 01:48
Copy link

The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information.

1 similar comment
Copy link

The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information.

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.

1 participant