Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: title bar underlay not showing on mac

Abdullah Atta2357e3de0b0a
diff --git a/apps/web/src/components/title-bar/index.tsx b/apps/web/src/components/title-bar/index.tsx
index be2631e56..6665203a9 100644
--- a/apps/web/src/components/title-bar/index.tsx
+++ b/apps/web/src/components/title-bar/index.tsx
@@ -73,7 +73,8 @@ export function TitleBar({ isUnderlay = isMac() }: { isUnderlay?: boolean }) {
useWindowControls();
const isTablet = useTablet();
const isMobile = useMobile();
- if ((!isMobile && !isTablet) || (isFullscreen && isMac())) return null;
+ if ((!isMac() && !isMobile && !isTablet) || (isFullscreen && isMac()))
+ return null;
const tools = getWindowControls(
hasNativeWindowControls,
@@ -104,7 +105,7 @@ export function TitleBar({ isUnderlay = isMac() }: { isUnderlay?: boolean }) {
}}
injectCssVars
>
- {tools.length > 0 ? (
+ {tools.filter((t) => !t.hidden).length > 0 ? (
<svg
className="titlebarLogo"
style={{