Commit Graph

197 Commits

Author SHA1 Message Date
mr. M
031926efb7 refactor: remove sidebar-related code and update localization references 2025-04-02 10:16:07 +02:00
mr. m
a78f8586f4 Update src/browser/base/content/ZenUIManager.mjs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
2025-03-29 20:45:44 +01:00
mr. M
60e96a73eb fix: log errors in zenUpdateLayoutBreakout for better debugging 2025-03-29 20:41:50 +01:00
mr. M
e43f9729a7 Fixed fetching bool prefs on the CSS 2025-03-27 00:22:43 +01:00
mr. M
c3e33fa7f3 refactor: update configuration and initialization for Zen application 2025-03-26 23:28:30 +01:00
mr. m
ad04961d19 refactor: adjust toast animation duration and update styling for improved visibility 2025-03-18 12:34:54 +01:00
mr. M
630152b91e feat: enhance panel UI positioning and improve hover state handling 2025-03-17 20:41:24 +01:00
mr. M
b6477b17d8 fix(build): disable LTO temporarily and enable PGO based on release settings
refactor(ui): remove unnecessary DOMContentLoaded listener from toolbar registration
fix(ui): trigger window resize event on closing watermark to recalculate layout
refactor(ui): improve animation structure for tab content in vertical tabs manager
2025-03-15 19:36:13 +01:00
mr. M
ce2e68ee32 fix(ui): update URL bar layout and adjust media controls padding 2025-03-15 18:59:28 +01:00
Slowlife01
500e62cbce address reviews 2025-03-12 08:45:23 +07:00
Slowlife01
e6552c8dda Feat: basic media control
Fixed dragging undefined tabs
2025-03-12 08:45:19 +07:00
mr. M
6d164511b4 Add error handling to tab animation and refine empty tab selection logic 2025-03-08 19:43:12 +01:00
mr. M
a93fdf5a17 Refactor URL bar height handling and improve drag-and-drop tab functionality in ZenViewSplitter 2025-03-08 18:51:46 +01:00
mr. M
07afc4810a Adjust URL bar height and update layout handling for compact mode 2025-03-08 11:51:50 +01:00
mr. M
452c19a7ea Refactor ZenViewSplitter to improve drag-and-drop functionality and enhance split view behavior 2025-03-04 20:23:21 +01:00
Aloys Riswick
654d35bc89 Allow having full url without https in sidebar 2025-02-28 22:57:38 +01:00
mr. M
576632fbbf Adjustments while updating to firefox 136.0 2025-02-26 21:00:21 +01:00
mr. m
bd5fc861df For security reasons, dont trim the URL bar when it's not explicitly https 2025-02-25 18:15:44 +01:00
mr. m
6988060269 Ignore localhost URLs when trimming the URL in collapsed mode 2025-02-25 18:04:23 +01:00
mr. M
e246a6cd67 Refactor ZenUIManager to correct tab renaming logic by moving attribute setting for improved functionality 2025-02-22 12:16:10 +01:00
mr. M
8e64623592 Refactor tab selection and new tab handling logic in ZenWorkspaces for improved clarity and maintainability 2025-02-22 00:02:12 +01:00
mr. M
bb7c400855 Fix welcome screen preference setting and optimize dot removal logic in gradient generator 2025-02-21 20:18:27 +01:00
mr. M
9712ced2bf Refactor tab management and styling for improved workspace organization and UI consistency 2025-02-20 20:34:55 +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
Kristijan Ribarić
a6e446e5cf Fix: Update pinned tab title in storage on rename
This commit addresses an issue where renaming a pinned tab wouldn't update the title stored in `ZenPinnedTabsStorage`.

The following changes were made:

- Modified `ZenUIManager.mjs` to asynchronously call `ZenPinnedTabsStorage.updatePinTitle` when a tab is renamed via the keyboard. This ensures the stored title is synchronized with the displayed title.
- Added the `updatePinTitle` function to `ZenPinnedTabsStorage.mjs`. This function updates the title of a zen pin within the database.

This ensures consistency between the tab title displayed in the UI and the title stored for pinned tabs.
2025-02-17 15:56:57 +01:00
mr. M
415031230c Refactor CSS styles for URL bar, popups, and compact mode; add grainy background effect and adjust toast animation timing 2025-02-16 21:33:09 +01:00
mr. m
eddc804a92 Formatted the project 2025-02-16 13:39:09 +01:00
mr. m
4bc5e41c35 Trim more the urlbar on single toolbar, fixed pinned tabs issues and removed security indicator on the urlbar unless it's hovered 2025-02-16 13:17:36 +01:00
mr. m
cad5703185 Fixed previous merges 2025-02-15 20:24:34 +01:00
mr. m
91e97143c9 Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2025-02-15 19:08:06 +00:00
mr. M
3649d7f111 Implement toast notifications for user actions and enhance UI feedback 2025-02-15 19:02:20 +00:00
mr. M
8372671b70 Refactor animation code for tab editing to improve readability and maintainability 2025-02-15 19:02:20 +00:00
mr. M
945eec6931 Refactor tab renaming logic to ensure consistent label handling and add animation effect; update CSS for vertical tabs to improve styling 2025-02-15 19:02:20 +00:00
jso8910
2c92c61015 Deactivated listener in collapsed sidebar mode, refactored code 2025-02-15 19:02:20 +00:00
jso8910
d56f4962bf Added preference to disable tab renaming, refactored inline styles to css files, changed listener to blur, refactored code 2025-02-15 19:02:18 +00:00
jso8910
34355d8e00 Changed listener to tabContainer.addEventListener 2025-02-15 19:00:14 +00:00
jso8910
27dc41dd9e Added zen-has-static-label to session store, temporarily removed label persist functionality, rewrote tab reset to use DOM 2025-02-15 19:00:11 +00:00
jso8910
8080e2fe47 Added persisting in tab label renaming, added tab label resetting 2025-02-15 18:57:45 +00:00
jso8910
a716c99152 Fixed bug where new pinned tabs can't be renamed 2025-02-15 18:57:45 +00:00
jso8910
df30fcf37b Fixed code formatting for linter 2025-02-15 18:57:45 +00:00
jso8910
71d2bfab38 Moved rename to gZenVerticalTabsManager, changed to double click on pinned tabs 2025-02-15 18:57:41 +00:00
mr. M
60be486095 Implement toast notifications for user actions and enhance UI feedback 2025-02-15 11:23:44 +01:00
mr. M
be6cd98cec Refactor animation code for tab editing to improve readability and maintainability 2025-02-15 09:57:40 +01:00
mr. M
a5e34fc9a5 Refactor tab renaming logic to ensure consistent label handling and add animation effect; update CSS for vertical tabs to improve styling 2025-02-15 02:10:37 +01:00
mr. m
e1b57df990 Merge branch 'dev' into feature/tab-rename
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
2025-02-15 01:49:16 +01:00
mr. M
8813c5174e Update newtabButton to newtabButtons for multiple button handling in ZenUIManager 2025-02-14 19:57:54 +01:00
mr. M
47824d8bca Simplify ResizeObserver initialization in ZenUIManager by consolidating method calls 2025-02-14 19:43:57 +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
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
869c2eb8b2 Refactor pinned tab management and improve event handling for workspace initialization 2025-02-14 11:29:25 +01:00