1
0

Single-line height directives again

This commit is contained in:
Zef Hemel 2023-09-09 21:06:15 +02:00
parent a98c74eba2
commit 3f42377f58
2 changed files with 10 additions and 9 deletions

View File

@ -19,7 +19,7 @@ export function directivePlugin() {
return; return;
} }
const cursorInRange = isCursorInRange(state, [parent.from, parent.to]); const cursorInRange = isCursorInRange(state, [from, to]);
if (type.name === "DirectiveStart") { if (type.name === "DirectiveStart") {
if (cursorInRange) { if (cursorInRange) {

View File

@ -342,6 +342,7 @@
.sb-directive-end-outside { .sb-directive-end-outside {
color: transparent; color: transparent;
pointer-events: none; pointer-events: none;
height: 1.3em;
.sb-directive-placeholder { .sb-directive-placeholder {
padding-right: 7px; padding-right: 7px;
@ -486,12 +487,12 @@ div:not(.cm-focused).cm-fat-cursor {
} }
@media only screen and (max-width: 600px) { // @media only screen and (max-width: 600px) {
#sb-editor { // #sb-editor {
.sb-directive-start-outside, // .sb-directive-start-outside,
.sb-directive-end-outside { // .sb-directive-end-outside {
height: 22px; // height: 22px;
} // }
} // }
} // }