mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-04 18:59:08 +01:00
bring back selected line
This commit is contained in:
parent
82496389ed
commit
7129234ce4
@ -15,6 +15,7 @@
|
||||
@button-disabled-background: rgb(30, 29, 29);
|
||||
@success-green: rgb(38, 97, 26);
|
||||
@error-red: #cc0000;
|
||||
@error-red-brightened: #ff8888;
|
||||
@warning-yellow: #ffa500;
|
||||
@textarea-background: #171717;
|
||||
|
||||
|
@ -35,13 +35,22 @@
|
||||
}
|
||||
|
||||
&.selected {
|
||||
// border: 1px solid rgba(@base-color, 0.8) !important;
|
||||
.line-mask {
|
||||
border-left: 4px solid #ccc;
|
||||
}
|
||||
|
||||
&.has-error {
|
||||
.line-mask {
|
||||
border-left: 4px solid rgba(@error-red-brightened, 0.8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
&.active.selected {
|
||||
.line-mask {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
border: 2px solid rgba(@wave-green, 0.8);
|
||||
border-left: 4px solid rgba(@wave-green, 0.8);
|
||||
}
|
||||
|
||||
&.has-error {
|
||||
|
@ -669,7 +669,7 @@ class LineCmd extends React.Component<
|
||||
data-linenum={line.linenum}
|
||||
data-screenid={line.screenid}
|
||||
>
|
||||
<If condition={(isSelected && isFocused) || cmdError}>
|
||||
<If condition={isSelected || cmdError}>
|
||||
<div key="mask" className={cn("line-mask", { "error-mask": cmdError })}></div>
|
||||
</If>
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user