Commit Graph

200 Commits

Author SHA1 Message Date
mr. m
f94d35519e Fixed renaming workspaces not being applied 2025-02-19 20:25:51 +01:00
mr. M
37a985c936 Formatted ebdc9368da 2025-02-19 17:27:10 +01:00
mr. M
ebdc9368da Added an Arc-like empty tab that represents no state. [zen.urlbar.replace-newtab to false to disable] 2025-02-19 17:26:30 +01:00
mr. M
ceb0e97610 Fixed changing workspaces with container specific essentials turned on 2025-02-18 21:05:54 +01:00
mr. m
a024c509c6 Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2025-02-18 17:08:49 +01:00
mr. m
1b72cc2114 Fixed adding extra force to the swiping motion 2025-02-18 17:08:41 +01:00
mr. M
c0d732da7c Fixed pinned tabs initialization when restoring 2 windows 2025-02-18 16:41:46 +01:00
mr. M
a64adb6b16 Add event listener for TabClose and improve separator visibility logic 2025-02-18 00:51:19 +01:00
mr. m
57071d21a7 Fixed force multiplyer to take into account sidebar width instead of scroll width 2025-02-18 00:24:11 +01:00
mr. m
657cb4c4cd Merge pull request #5474 from kristijanribaric/add-tab-rename-persistance
Fix: Update pinned tab title in storage on rename
2025-02-17 19:16:41 +01:00
Kristijan Ribarić
57a33beb81 Fix: Properly update pinned tab titles after edit
This commit addresses an issue where edited pinned tab titles were not consistently updated across all windows and in storage.

The following changes were made:

- **ZenUIManager.mjs:** Removed redundant `pinId` variable and directly checked `zen-pin-id` attribute.
- **ZenPinnedTabsStorage.mjs:** Added `edited_title` column to the `zen_pins` table to track if a pin's title has been manually edited.  Also, the `updatePinTitle` function now accepts an `isEdited` flag (defaults to true) and updates the `edited_title` column accordingly.
- **ZenPinnedTabManager.mjs:**  The `updatePinTitle` function was added to handle the update of pin titles.  It updates the title in storage using `ZenPinnedTabsStorage.updatePinTitle`, refreshes the pinned tabs, and then iterates through all browser windows to update the labels of corresponding pinned tabs.  Also, a check was added to `_initializePinnedTabs` to set the `zen-has-static-label` attribute on tabs with `editedTitle` set to `true`.
- **ZenWorkspaces.mjs:** Added a null check for `activeWorkspaceStrip` to avoid errors when it's not available.

These changes ensure that when a pinned tab title is edited, the updated title is correctly persisted in storage and reflected across all open windows. The `edited_title` flag allows distinguishing between default titles and custom ones.
2025-02-17 17:22:44 +01:00
mr. M
cbbae1e26a Fix CSS syntax and improve force calculation for workspace swiping 2025-02-17 12:25:12 +01:00
mr. m
c855ea5838 Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2025-02-17 12:21:12 +01:00
mr. m
6df2c97cc5 Started using force calculations when swiping between workspaces 2025-02-17 12:21:04 +01:00
mr. M
cf3de23515 Refactor tab movement logic and improve workspace animations 2025-02-17 00:27:20 +01:00
mr. M
febeeb96f0 Prevent essential tabs from being added to workspaces and adjust tab insertion order in workspace sections 2025-02-16 22:25:12 +01:00
mr. M
bf91ffddf3 Update visibility handling in ZenWorkspaces by replacing position styles with hidden attribute 2025-02-14 19:42:48 +01:00
mr. M
1a293fc5ff Refactor initialization logic in ZenStartup and update tab toolbar handling in ZenUIManager and ZenPinnedTabManager 2025-02-14 19:32:56 +01:00
mr. M
12e2781668 Format code for better readability in ZenWorkspaces 2025-02-14 16:53:03 +01:00
mr. M
5ace391a61 Fixed common bugs with workspaces 2025-02-14 16:52:46 +01:00
mr. M
31f5762efd Improve active workspace selection logic in ZenWorkspaces 2025-02-14 12:45:48 +01:00
mr. M
c27a26eee4 Rename 'zen-browser-tabs-wrapper' to 'zen-tabs-wrapper' across multiple files for consistency 2025-02-14 11:38:00 +01:00
mr. M
46ff0020bb Format event listener and improve attribute setting for workspace tabs 2025-02-14 11:32:40 +01:00
mr. M
869c2eb8b2 Refactor pinned tab management and improve event handling for workspace initialization 2025-02-14 11:29:25 +01:00
mr. M
48879fb6a0 Enhance workspace tab initialization and update tab toolbar on load 2025-02-13 21:15:55 +01:00
mr. M
855c36280b Refactor tab overflow detection and adjust workspace initialization logic 2025-02-13 19:36:00 +01:00
mr. M
31ef8d2ec9 Refactor tab management and update CSS for improved layout and performance 2025-02-13 19:17:20 +01:00
mr. M
a5ae4077cf Refactor workspace tab transformations and update tab selection logic 2025-02-13 17:32:33 +01:00
mr. m
d6acd4deb8 Fixed switching workspaces 2025-02-13 16:29:34 +01:00
mr. m
ab836eb762 Fixed workspace switching 2025-02-13 11:16:16 +01:00
mr. m
22cc24e9f8 Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2025-02-13 11:01:01 +01:00
mr. m
4f41aab3fa merge 2025-02-13 11:00:56 +01:00
mr. M
9f6fbc5e57 Refactor tab handling and session restore logic for improved workspace management 2025-02-12 20:03:00 +01:00
mr. m
aebc2c9660 Fixed handling tab opens/close on workspaces 2025-02-12 15:36:59 +01:00
mr. m
23d9487ca7 Fixed pinned tabs separator using the wrong tabs when hiding 2025-02-12 15:35:37 +01:00
mr. m
40a843200f Fixed unpinning tabs 2025-02-12 12:39:13 +01:00
mr. m
22cad83c8f Fixed creating a new workspace in the new system 2025-02-12 10:58:53 +01:00
mr. m
c4b4aa6287 Fixed switching workspaces with 2025-02-11 23:27:43 +01:00
mr. M
d35fcabf92 Refactor workspace tab animations and improve workspace strip organization 2025-02-11 22:06:13 +01:00
mr. M
e387652c8b HUGE: handle workspaces as individual containers instead of a single list of tabs 2025-02-11 22:01:41 +01:00
mr. m
6f612d62cf Started working on new workspaec layout 2025-02-11 16:35:06 +01:00
mr. m
48badb83cf Fixed creating a new tab when we can just select the last one when switching workspaces 2025-02-11 13:45:09 +01:00
mr. m
6600e60498 Fixed showing wrong tab when changing workspaces 2025-02-11 13:40:13 +01:00
jso8910
0666d18f06 Fixed bug where container-specific essentials don't remain focused when switching workspaces 2025-02-05 16:41:52 +08:00
Sena Cahya
c401dfabdc Fix workspace swipe gesture does not respect the swipe direction 2025-02-05 08:57:56 +09:00
mr. M
7b41eb753d Refactor tab drag-and-drop functionality and enhance drag indicator styling 2025-01-31 23:02:13 +01:00
mr. M
307becf086 Fixed Switch to workspace where container is set as default when opening container tabs not working 2025-01-31 19:13:18 +01:00
mr. M
3413399dfa Adjust workspace tab behavior and refine swipe sensitivity thresholds 2025-01-30 07:10:35 +01:00
mr. m
67a6d9c844 Fixed swiping animations 2025-01-28 19:58:53 +01:00
mr. M
d4a9f9058d Add media query for macOS to enhance tab border radius and improve native appearance 2025-01-27 22:23:50 +01:00