Dom renderer: top decorations above selection

Fixes #3799
This commit is contained in:
Daniel Imms
2022-05-13 07:56:45 -07:00
parent 3abbaa9ba9
commit 1a50cfabe0
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -183,3 +183,8 @@
right: 0;
pointer-events: none;
}
.xterm-decoration-top {
z-index: 2;
position: relative;
}
@@ -195,6 +195,11 @@ export class DomRendererRowFactory {
isTop = d.options.layer === 'top';
}
// If it's a top decoration, render on above the selection
if (isTop) {
charElement.classList.add(`xterm-decoration-top`);
}
// Foreground
switch (fgColorMode) {
case Attributes.CM_P16: