Skip to content

Commit 2ad9a54

Browse files
committed
fix: improve tooltip
1 parent 8023b27 commit 2ad9a54

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/ui.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
display: grid;
121121
grid-template-columns: 1fr 1fr;
122122
gap: 18px;
123-
overflow: hidden;
124123
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
125124
max-height: 800px;
126125
opacity: 1;
@@ -391,10 +390,12 @@
391390
left: 50%;
392391
transform: translateX(-50%);
393392
bottom: calc(100% + 6px);
394-
white-space: nowrap;
393+
white-space: normal;
394+
word-wrap: break-word;
395+
overflow-wrap: break-word;
395396
text-align: left;
396-
padding: 8px 10px;
397-
border-radius: 4px;
397+
padding: 10px 12px;
398+
border-radius: 6px;
398399
font-size: 12px;
399400
background: #121212;
400401
border: 1px solid rgba(255, 255, 255, 0.08);
@@ -404,6 +405,8 @@
404405
opacity: 0;
405406
transition: opacity 0.12s ease-in-out;
406407
z-index: 9999;
408+
min-width: 200px;
409+
max-width: 400px;
407410
}
408411
.qs-icon:hover > .qs-tooltip {
409412
opacity: 1;

0 commit comments

Comments
 (0)