fixed strudel bool
This commit is contained in:
parent
17e1ebeb93
commit
bd08b74ebc
12 changed files with 157 additions and 38 deletions
|
|
@ -11,7 +11,9 @@ export const flashField = StateField.define({
|
|||
for (let e of tr.effects) {
|
||||
if (e.is(setFlash)) {
|
||||
if (e.value && tr.newDoc.length > 0) {
|
||||
const mark = Decoration.mark({ attributes: { style: `background-color: #FFCA2880` } });
|
||||
const mark = Decoration.mark({
|
||||
attributes: { style: `background-color: rgba(255,255,255, .4); filter: invert(10%)` },
|
||||
});
|
||||
flash = Decoration.set([mark.range(0, tr.newDoc.length)]);
|
||||
} else {
|
||||
flash = Decoration.set([]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue