Prefix class with xterm-decoration-

This commit is contained in:
Daniel Imms
2023-05-17 06:57:13 -07:00
parent 60f549028f
commit ec227c757b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -179,7 +179,7 @@
position: absolute; position: absolute;
} }
.xterm-screen .xterm-decoration-container .xterm-decoration.top-layer { .xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
z-index: 7; z-index: 7;
} }
@@ -72,7 +72,7 @@ export class BufferDecorationRenderer extends Disposable {
private _createElement(decoration: IInternalDecoration): HTMLElement { private _createElement(decoration: IInternalDecoration): HTMLElement {
const element = document.createElement('div'); const element = document.createElement('div');
element.classList.add('xterm-decoration'); element.classList.add('xterm-decoration');
element.classList.toggle('top-layer', decoration?.options?.layer === 'top'); element.classList.toggle('xterm-decoration-top-layer', decoration?.options?.layer === 'top');
element.style.width = `${Math.round((decoration.options.width || 1) * this._renderService.dimensions.css.cell.width)}px`; element.style.width = `${Math.round((decoration.options.width || 1) * this._renderService.dimensions.css.cell.width)}px`;
element.style.height = `${(decoration.options.height || 1) * this._renderService.dimensions.css.cell.height}px`; element.style.height = `${(decoration.options.height || 1) * this._renderService.dimensions.css.cell.height}px`;
element.style.top = `${(decoration.marker.line - this._bufferService.buffers.active.ydisp) * this._renderService.dimensions.css.cell.height}px`; element.style.top = `${(decoration.marker.line - this._bufferService.buffers.active.ydisp) * this._renderService.dimensions.css.cell.height}px`;