Single-line height directives again
This commit is contained in:
parent
a98c74eba2
commit
3f42377f58
@ -19,7 +19,7 @@ export function directivePlugin() {
|
||||
return;
|
||||
}
|
||||
|
||||
const cursorInRange = isCursorInRange(state, [parent.from, parent.to]);
|
||||
const cursorInRange = isCursorInRange(state, [from, to]);
|
||||
|
||||
if (type.name === "DirectiveStart") {
|
||||
if (cursorInRange) {
|
||||
|
@ -342,6 +342,7 @@
|
||||
.sb-directive-end-outside {
|
||||
color: transparent;
|
||||
pointer-events: none;
|
||||
height: 1.3em;
|
||||
|
||||
.sb-directive-placeholder {
|
||||
padding-right: 7px;
|
||||
@ -486,12 +487,12 @@ div:not(.cm-focused).cm-fat-cursor {
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
#sb-editor {
|
||||
// @media only screen and (max-width: 600px) {
|
||||
// #sb-editor {
|
||||
|
||||
.sb-directive-start-outside,
|
||||
.sb-directive-end-outside {
|
||||
height: 22px;
|
||||
}
|
||||
}
|
||||
}
|
||||
// .sb-directive-start-outside,
|
||||
// .sb-directive-end-outside {
|
||||
// height: 22px;
|
||||
// }
|
||||
// }
|
||||
// }
|
Loading…
Reference in New Issue
Block a user