Single-line height directives again
This commit is contained in:
parent
a98c74eba2
commit
3f42377f58
@ -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) {
|
||||||
|
@ -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;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
Loading…
Reference in New Issue
Block a user