fix(cli): tweak highlight diagnostic tooltip
This commit is contained in:
@@ -4,9 +4,11 @@ span {
|
||||
&.error {
|
||||
--col: 255, 0, 0;
|
||||
}
|
||||
|
||||
&.warning {
|
||||
--col: 250, 160, 0;
|
||||
}
|
||||
|
||||
&.info {
|
||||
--col: 150, 190, 250;
|
||||
}
|
||||
@@ -19,12 +21,12 @@ span {
|
||||
}
|
||||
|
||||
&:hover:not(:has(.with-msg:hover)) {
|
||||
.message {
|
||||
&>.message {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.message {
|
||||
&>.message {
|
||||
position: absolute;
|
||||
top: calc(100% + 0.2em);
|
||||
left: -.2em;
|
||||
@@ -33,7 +35,8 @@ span {
|
||||
padding: 0.2em 0.4em;
|
||||
border-radius: .2em;
|
||||
z-index: 10;
|
||||
width: 300%;
|
||||
width: max-content;
|
||||
max-width: 60vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user