From 8a6ab2820c556d79dc6719dbb07a4a2ee602c8f4 Mon Sep 17 00:00:00 2001 From: Ammar Date: Fri, 10 Oct 2025 18:49:16 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A4=96=20Make=20'cmux'=20text=20link?= =?UTF-8?q?=20to=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes the 'cmux' text in the title bar a clickable link to cmux.io. Features: - Clean design: looks like regular text, underlines only on hover - Tooltip shows 'Documentation (cmux.io)' on hover - Opens in default browser via Electron's shell.openExternal - Version text remains selectable for copying This provides quick access to documentation without adding visual clutter or taking extra space in the title bar. _Generated with `cmux`_ --- src/components/TitleBar.tsx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/components/TitleBar.tsx b/src/components/TitleBar.tsx index e2f4dc391..7b13d6d21 100644 --- a/src/components/TitleBar.tsx +++ b/src/components/TitleBar.tsx @@ -20,6 +20,19 @@ const TitleBarContainer = styled.div` const TitleText = styled.div` font-weight: normal; letter-spacing: 0.5px; +`; + +const CmuxLink = styled.a` + color: inherit; + text-decoration: none; + cursor: pointer; + + &:hover { + text-decoration: underline; + } +`; + +const VersionText = styled.span` user-select: text; cursor: text; `; @@ -57,7 +70,15 @@ export function TitleBar() { return ( - cmux {VERSION.git_describe} + + + + cmux + + Documentation (cmux.io) + {" "} + {VERSION.git_describe} + {buildDate} Built at {extendedTimestamp} From 03fd564194e25ff1a93827cbc1070cf4f83f6e8b Mon Sep 17 00:00:00 2001 From: Ammar Date: Fri, 10 Oct 2025 20:15:24 -0500 Subject: [PATCH 2/2] Fix line break in title bar text Use flex layout and inline TooltipWrapper to keep 'cmux' and version on same line without line breaks. --- src/components/TitleBar.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/TitleBar.tsx b/src/components/TitleBar.tsx index 7b13d6d21..209343395 100644 --- a/src/components/TitleBar.tsx +++ b/src/components/TitleBar.tsx @@ -18,6 +18,9 @@ const TitleBarContainer = styled.div` `; const TitleText = styled.div` + display: flex; + align-items: center; + gap: 4px; font-weight: normal; letter-spacing: 0.5px; `; @@ -71,12 +74,12 @@ export function TitleBar() { return ( - + cmux Documentation (cmux.io) - {" "} + {VERSION.git_describe}