mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Move setting opacity into js
This commit is contained in:
@@ -626,10 +626,10 @@ export class SearchAddon implements ITerminalAddon {
|
||||
}
|
||||
if (!element.classList.contains('xterm-find-result-decoration')) {
|
||||
element.classList.add('xterm-find-result-decoration');
|
||||
// decoration's clientWidth = actualCellWidth
|
||||
element.style.left = `${element.clientWidth * result.col}px`;
|
||||
element.style.width = `${element.clientWidth * result.term.length}px`;
|
||||
element.style.backgroundColor = color;
|
||||
element.style.opacity = '0.6';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -179,10 +179,6 @@
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.xterm-find-result-decoration {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.xterm-decoration-overview-ruler {
|
||||
z-index: 7;
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user