mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix padding in emptyLineFiller and lineWrappingIndentation extensions (#12736)
GitOrigin-RevId: 8b6a2ad0beb802d917f3e998c378792c6156836a
This commit is contained in:
parent
8537a7a5d0
commit
f409b96f00
2 changed files with 2 additions and 3 deletions
|
@ -68,8 +68,7 @@ export const emptyLineFiller = () => {
|
|||
),
|
||||
EditorView.baseTheme({
|
||||
'.ol-cm-filler': {
|
||||
display: 'inline',
|
||||
padding: '2px',
|
||||
padding: '0 2px',
|
||||
},
|
||||
}),
|
||||
]
|
||||
|
|
|
@ -122,7 +122,7 @@ const lineIndentDecoration = (indent: number) =>
|
|||
Decoration.line({
|
||||
attributes: {
|
||||
// style: `text-indent: ${indent}ch hanging`, // "hanging" would be ideal, when browsers support it
|
||||
style: `text-indent: -${indent}ch; padding-left: calc(${indent}ch + 4px)`, // add 4px to account for existing padding-left
|
||||
style: `text-indent: -${indent}ch; padding-left: calc(${indent}ch + 6px)`, // add 6px to account for existing padding-left
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue