Commit 65b50da
authored
input_code_editor(): fix caret drift caused by prism theme font-family override (#1304)
* fix: override prism theme font-family on .prism-code-editor to fix caret drift
Prism themes hardcode `font-family` directly on `.prism-code-editor`,
which wins over bslib's monospace font override and causes the caret to
visually drift from the actual insertion point.
Closes #1303
* Resave distributed files (GitHub Action)
* news: add entry for input_code_editor() caret drift fix
Closes #13041 parent d9b20fe commit 65b50da
5 files changed
Lines changed: 5 additions & 1 deletion
File tree
- R
- inst
- components/dist
- lib/prism-code-editor/prism/languages
- srcts/src/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments