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

Feature: Add reset to pinned URL button to pinned tabs #2904

Conversation

kristijanribaric
Copy link
Contributor

@kristijanribaric kristijanribaric commented Nov 11, 2024

This PR introduces a "Reset" button to pinned tabs, allowing users to quickly revert a tab to its stored base URL. The button is visible on hover for non-essential pinned tabs and hidden for essentials. Clicking the button triggers a
reset action managed by gZenPinnedTabManager.

The visual style of the button is defined using the "reload" icon and follows the styling of other tab buttons.

Depends on:
zen-browser/l10n-packs#99

1.mp4

This commit introduces a "Reset" button to pinned tabs, allowing
users to quickly revert a tab to its stored base URL.  The button
is visible on hover for non-essential pinned tabs and hidden
for essentials.  Clicking the button triggers a
reset action managed by `gZenPinnedTabManager`.

The visual style of the button is defined using the "reload"
icon and follows the styling of other tab buttons.
@mauro-balades
Copy link
Member

Thanks!!! <3

@mauro-balades mauro-balades merged commit 9d328b3 into zen-browser:dev Nov 11, 2024
1 check passed
@Shockshwat
Copy link

Would it be possible to instead unload the tab when you are already at the pinned URL? So essentially 1st click takes you to the pinned URL and the second click would unload the tab and the third click unpin and close the tab?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants