From f3dec414cc9a69ca9baa20ed9bba91214aa3b2ef Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Tue, 7 Jul 2026 16:01:55 +0200 Subject: [PATCH] fix(cli): tweak highlight diagnostic tooltip --- midas/cli/hl_diagnostic.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/midas/cli/hl_diagnostic.css b/midas/cli/hl_diagnostic.css index 8b09b7f..d975c3e 100644 --- a/midas/cli/hl_diagnostic.css +++ b/midas/cli/hl_diagnostic.css @@ -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; } } } \ No newline at end of file