Commit Graph

104 Commits

Author SHA1 Message Date
Bridget Morningstar
d2b17fbc6d made the icons work with a seperate file 2024-12-29 01:34:36 -06:00
Bridget Morningstar
d9748cb69b fixed issue with mouse 4 / 5 buttons and added wrap pref to shortcuts fuction 2024-12-28 01:37:14 -06:00
Bridget Morningstar
842451c747 fixed small issue with returning the list 2024-12-27 16:41:06 -06:00
Bridget Morningstar
cbcb5cfdd6 fixed issues with css placement 2024-12-27 15:20:16 -06:00
mr. M
70c0fff557 Fixed having multiple windows displaying the wrong essentials at startup and worked on rices 2024-12-26 23:35:39 +01:00
Bridget Morningstar
9dfe3dcf79 Merge branch 'adds-search-to-icons' of https://github.com/neurokitti/desktop into adds-search-to-icons 2024-12-23 17:33:05 -06:00
Bridget Morningstar
ea05cf02b4 fixed issues with variable names and inline css 2024-12-23 17:31:14 -06:00
Studio Movie Girl
1b25275333 Update ZenWorkspaces.mjs
Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
2024-12-23 15:02:58 -06:00
Studio Movie Girl
f90bc04b1a Update ZenWorkspaces.mjs
Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
2024-12-23 15:01:11 -06:00
Studio Movie Girl
2a06601e3a Update ZenWorkspaces.mjs
Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
2024-12-23 14:36:28 -06:00
Studio Movie Girl
bcb5e3950b Merge branch 'zen-browser:dev' into adds-search-to-icons 2024-12-23 14:30:11 -06:00
Bridget Morningstar
a2478e68c6 shit ton of stuff 2024-12-23 14:03:27 -06:00
mr. M
1e927834b3 Fixed tab context menu not working when changing tab to a different workspace (closes https://github.com/zen-browser/desktop/issues/2963) 2024-12-22 00:50:01 +01:00
mr. M
c489a0b7cc Fixed PGO builds not fully working 2024-12-21 13:32:03 +01:00
mr. M
29e7df3575 Refactor ZenPinnedTabsStorage initialization and improve workspace handling 2024-12-19 20:43:07 +01:00
Studio Movie Girl
3d0a4c9137 Update ZenWorkspaces.mjs
Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
2024-12-19 08:32:33 -06:00
mr. M
6c67aee8a4 Fixed workspace indicator showing if workspaces are disabled 2024-12-17 19:08:01 +01:00
Studio Movie Girl
de24cbd70b Update ZenWorkspaces.mjs
Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
2024-12-16 17:07:51 -06:00
Studio Movie Girl
dbdf154e42 Update ZenWorkspaces.mjs
Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
2024-12-16 17:06:46 -06:00
Bridget Morningstar
82b1dbb01b a shit ton of stuff 2024-12-16 00:14:38 -06:00
mr. M
15ff4f12ac refactor: improve platform-specific button handling and streamline profile opening logic 2024-12-10 17:00:12 +01:00
mr. M
7e9153171a Fixed opening tab in a new container not changing the tab to the correct forced workspace 2024-12-08 11:39:42 +01:00
mr. m
f5fd5a22e9 Merge pull request #3289 from neurokitti/dev
Restricted scrolling beyond the first and last workspaces and fixed bug with Sidebar Switches Multiple Spaces Instead of One
2024-12-05 19:17:20 +01:00
mr. M
f6cbe1c4bc Prevent using single toolbar in popup windows and fixed one-offs UI 2024-12-05 18:35:38 +01:00
Studio Movie Girl
df801995ff Update ZenWorkspaces.mjs
Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
2024-12-05 10:20:29 -06:00
Bridget Morningstar
7112f77b7c fix
uses lazy getters
2024-12-03 21:48:13 -06:00
Bridget Morningstar
a869e7a3bd removed my spaces lol mb
asdf
2024-11-28 22:29:16 -06:00
Bridget Morningstar
90fe7d8e03 adds ability to scroll between workspaces as well as fixing the issue with trackpad 2024-11-28 22:19:25 -06:00
mr. m
c0da03cfe8 Merge pull request #3215 from kristijanribaric/feature/workspace-specific-bookmarks
Feature:  Workspace-specific bookmarks
2024-11-28 18:55:51 +01:00
mr. m
a02ae261cf Merge branch 'dev' into formatting
Signed-off-by: mr. m  <91018726+mr-cheff@users.noreply.github.com>
2024-11-28 18:52:43 +01:00
mr. M
f35cc90ea4 Enhance animations and sidebar panel styles for improved UI transitions 2024-11-28 18:29:22 +01:00
Vijay A
92de4022cb Remove trailing spaces 2024-11-28 07:34:29 +05:30
Kristijan Ribarić
c0df38c23d Fix: Rename _bookmarkWorkspaceCache to _workspaceBookmarksCache
Renames the internal cache variable `_bookmarkWorkspaceCache` to `_workspaceBookmarksCache` for consistency and clarity.  This change does not affect functionality.
2024-11-27 21:54:42 +01:00
Kristijan Ribarić
78d10b4c1b Added workspace selector on bookmarks create/edit modal, added table for storing relationships between workspaces and bookmarks. 2024-11-27 19:51:21 +01:00
Kristijan Ribarić
01c8032f20 Fix: Handle essential tabs and container-specific essentials
Refactor workspace switching logic to correctly handle
essential tabs and introduce container-specific essentials.

This change addresses issues with essential tabs not being
handled correctly during workspace switches.

The `changeWorkspace` function is refactored to improve
clarity and maintainability.  The logic for showing and
hiding tabs is streamlined, and tab selection is handled
more robustly.  A new `_shouldShowTab` function is
introduced to centralize the logic for determining tab
visibility based on workspace and container settings.  The
logic also handles pinned essential tabs in the different workspace types.

The pinned tab manager is updated to support container-
specific essentials and to refresh pinned tabs on workspace
changes.  The `_shouldShowPin` function is introduced to
manage visibility of pinned tabs in different workspaces
considering essential tabs, pinned tabs and containers.

This change also fixes a bug where the selected tab would
sometimes be changed unexpectedly when switching
workspaces.
2024-11-20 10:05:07 +01:00
mr. M
ec681b841e refactor: move sidebar height throttle and content element separation to ZenUIManager; streamline tab toolbar updates 2024-11-19 00:10:30 +01:00
mr. M
ec433fa852 fix: correct typo in essential tab attribute to prevent changing selected tab 2024-11-13 23:33:58 +01:00
mr. M
6185f421b8 fix: prevent changing selected tab for essential tabs and update version to 132.0.2 2024-11-13 23:23:49 +01:00
Kristijan Ribarić
bc45092e03 Added a pref to make essentials container specific, i.e. if a workspace has a container assigned to it, on that workspace only essentials opened in that container will be visible. 2024-11-12 10:44:12 +01:00
kristijanribaric
110279cf4c (feat) Add workspace switching by scrolling sidebar (#2828)
This commit adds the ability to switch workspaces by horizontally
scrolling the sidebar.  A scroll cooldown and threshold are
implemented to prevent accidental workspace changes.  The
`_setupHoverDetection` method is renamed to `_setupSidebarHandlers`
as it now handles both hover and scroll events.
2024-11-10 19:05:15 +01:00
mr. M
056de6fc13 Hide toolbar buttons and workspace indicator in specific conditions 2024-11-10 18:04:47 +01:00
mr. M
dc4f8c6c98 Hide workspace indicator icon when no icon is present 2024-11-10 17:50:49 +01:00
mr. M
f923078445 Fixed expand on hover sidebar 2024-11-10 17:30:27 +01:00
mr. M
7a91ea7107 (feat) Enable swipe actions for workspace navigation 2024-11-09 18:52:22 +01:00
Kristijan Ribarić
14b8a1d8a2 (refactor) Remove debug logging
Removed a debug `console.log` statement that was used
during swipe gesture implementation.  This is no
longer needed.
2024-11-09 17:20:04 +01:00
Kristijan Ribarić
7ab07c69aa Add workspace navigation via mouse back/forward buttons
Adds the ability to navigate workspaces using the mouse
back/forward buttons when hovering over the sidebar.  This
improves the user experience by providing a more intuitive
way to switch between workspaces.

This feature is only enabled when workspaces are enabled.
It intercepts the "AppCommand" events to handle back/forward
navigation.
2024-11-09 17:18:01 +01:00
Kristijan Ribarić
84de31e85b (feat) Implement workspace switching via swipe gestures
This commit implements workspace switching using swipe gestures on the
navigator toolbox and tab bar. It introduces new event listeners for
`MozSwipeGesture*` events to detect and handle horizontal swipes.

The logic determines the swipe direction and switches to the next or
previous workspace accordingly, taking RTL layout into account.  The
implementation uses a state object to track the gesture progress and
prevent unintended workspace switches.
2024-11-09 16:21:46 +01:00
mr. M
31cc0ce7a8 feat: Add swipe gesture support for workspace navigation 2024-11-09 13:50:03 +01:00
mr. M
d7a48bd855 refactor: Remove redundant tab refresh during initialization and streamline workspace startup process 2024-11-08 20:07:02 +01:00
mr. M
f093228f71 feat: Update new tab button preferences and improve workspace indicator styles 2024-11-08 19:34:51 +01:00