Skip to content

Commit f7add05

Browse files
authored
🤖 Make title bar version text selectable (#169)
Fixes an issue where users cannot select/copy the git version text in the title bar. ## Problem The title bar has `user-select: none` on the container, preventing users from selecting the version string to copy it for bug reports or reference. ## Solution Added `user-select: text` and `cursor: text` to the `TitleText` component specifically, while keeping `user-select: none` on the container for other UI elements (like the date). ## Result Users can now click and drag to select the git version text (e.g., `c354df64-dirty`) and copy it. _Generated with `cmux`_
1 parent 87fbdb0 commit f7add05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/TitleBar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const TitleBarContainer = styled.div`
2020
const TitleText = styled.div`
2121
font-weight: normal;
2222
letter-spacing: 0.5px;
23+
user-select: text;
24+
cursor: text;
2325
`;
2426

2527
const BuildInfo = styled.div`

0 commit comments

Comments
 (0)