Skip to content

Commit

Permalink
Started using more native rounded corners
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Jan 14, 2025
1 parent d94aff9 commit b66b46b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/browser/base/content/zen-styles/zen-browser-container.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@
:root:not([inDOMFullscreen='true']):not([chromehidden~='location']):not([chromehidden~='toolbar']) {
& #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
width: -moz-available;
border-radius: var(--zen-webview-border-radius, var(--zen-border-radius));
--zen-native-content-radius: env(-moz-gtk-csd-titlebar-radius, var(--zen-border-radius));
border-radius: var(
--zen-webview-border-radius,
/* Inner radius calculation:
* 1. If the native radius - the separation is less than 4px, use 4px.
* 2. Otherwise, use the the calculated value (inner radius = outer radius - separation).
*/
max(
4px,
calc(var(--zen-native-content-radius) - var(--zen-element-separation)),
)
);
position: relative;

/* For glance */
Expand Down

0 comments on commit b66b46b

Please sign in to comment.