Skip to content

Commit b66b46b

Browse files
committed
Started using more native rounded corners
1 parent d94aff9 commit b66b46b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/browser/base/content/zen-styles/zen-browser-container.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@
66
:root:not([inDOMFullscreen='true']):not([chromehidden~='location']):not([chromehidden~='toolbar']) {
77
& #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
88
width: -moz-available;
9-
border-radius: var(--zen-webview-border-radius, var(--zen-border-radius));
9+
--zen-native-content-radius: env(-moz-gtk-csd-titlebar-radius, var(--zen-border-radius));
10+
border-radius: var(
11+
--zen-webview-border-radius,
12+
/* Inner radius calculation:
13+
* 1. If the native radius - the separation is less than 4px, use 4px.
14+
* 2. Otherwise, use the the calculated value (inner radius = outer radius - separation).
15+
*/
16+
max(
17+
4px,
18+
calc(var(--zen-native-content-radius) - var(--zen-element-separation)),
19+
)
20+
);
1021
position: relative;
1122

1223
/* For glance */

0 commit comments

Comments
 (0)