Skip to content

Commit

Permalink
web: title bar underlay not showing on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jan 2, 2025
1 parent 53b89a5 commit 2357e3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/web/src/components/title-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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={{
Expand Down

0 comments on commit 2357e3d

Please sign in to comment.