Skip to content

Commit be42bbb

Browse files
fix(web): fix line numbers selectable in Safari
Add WebkitUserSelect: 'none' to prevent line numbers from being selected on Safari, which requires the -webkit-user-select vendor prefix. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7e2af39 commit be42bbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/web/src/app/[domain]/components/lightweightCodeHighlighter.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export const LightweightCodeHighlighter = memo<LightweightCodeHighlighter>((prop
145145
textAlign: 'left',
146146
paddingLeft: '5px',
147147
userSelect: 'none',
148+
WebkitUserSelect: 'none',
148149
fontFamily: tailwind.theme.fontFamily.editor,
149150
color: tailwind.theme.colors.editor.gutterForeground,
150151
}}

0 commit comments

Comments
 (0)