From 46708f536d4feff6cffb1e043ec3a6de8cccbe11 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 5 Jul 2021 11:09:22 +1000 Subject: [PATCH] add comment about the use of linear-gradient Otherwise one of us is likely to return to the code in a few years, think it could be made simpler, and then break things again. :-) --- ts/editor/fields.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts/editor/fields.scss b/ts/editor/fields.scss index 4c67fd8ed..756903187 100644 --- a/ts/editor/fields.scss +++ b/ts/editor/fields.scss @@ -19,6 +19,8 @@ background: var(--frame-bg); &.dupe { + // this works around the background colour persisting in copy+paste + // (https://github.com/ankitects/anki/pull/1278) background-image: linear-gradient(var(--flag1-bg), var(--flag1-bg)); } }