Merge pull request #3800 from Tyriar/3799
Dom renderer: top decorations above selection
This commit is contained in:
@@ -183,3 +183,8 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.xterm-decoration-top {
|
||||||
|
z-index: 2;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|||||||
@@ -195,6 +195,11 @@ export class DomRendererRowFactory {
|
|||||||
isTop = d.options.layer === 'top';
|
isTop = d.options.layer === 'top';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If it's a top decoration, render above the selection
|
||||||
|
if (isTop) {
|
||||||
|
charElement.classList.add(`xterm-decoration-top`);
|
||||||
|
}
|
||||||
|
|
||||||
// Foreground
|
// Foreground
|
||||||
switch (fgColorMode) {
|
switch (fgColorMode) {
|
||||||
case Attributes.CM_P16:
|
case Attributes.CM_P16:
|
||||||
|
|||||||
Reference in New Issue
Block a user