Просмотр исходного кода

Merge pull request #18214 from overleaf/ae-visual-underline

[visual] Set text-underline-offset for links

GitOrigin-RevId: c65a92cada0e219bdb72e10d8987dbd5da7cd629
Alf Eaton 2 лет назад
Родитель
Сommit
a2ff44d7d4

+ 1 - 0
services/web/frontend/js/features/source-editor/extensions/visual/visual-theme.ts

@@ -62,6 +62,7 @@ const mainVisualTheme = EditorView.theme({
   '.ol-cm-link-text': {
     textDecoration: 'underline',
     fontFamily: 'inherit',
+    textUnderlineOffset: '2px',
   },
   '.ol-cm-monospace': {
     fontFamily: 'var(--source-font-family)',