1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Desktop: Fixes #12341: Markdown editor: Prevent selection from extending far outside the editor boundaries (#12746)

This commit is contained in:
Henry Heino
2025-07-21 10:31:01 -07:00
committed by GitHub
parent e6b81d42c3
commit 4d5097b585

View File

@@ -188,8 +188,7 @@ const createTheme = (theme: EditorTheme): Extension[] => {
'& .cm-tableHeader, & .cm-tableRow, & .cm-tableDelimiter': monospaceStyle, '& .cm-tableHeader, & .cm-tableRow, & .cm-tableDelimiter': monospaceStyle,
'& .cm-taskMarker': monospaceStyle, '& .cm-taskMarker': monospaceStyle,
// Apply maximum width styles to individual lines. '&.cm-editor .cm-content': theme.contentMaxWidth ? {
'& .cm-line': theme.contentMaxWidth ? {
maxWidth: theme.contentMaxWidth, maxWidth: theme.contentMaxWidth,
// Center // Center