Skip to content

Commit 2bac60b

Browse files
committed
improve css
1 parent 285ed69 commit 2bac60b

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

packages/rehype-shiki/src/transformers/twoslash/index.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,16 @@
33
.twoslash-hover {
44
cursor: text;
55
}
6+
7+
.twoslash-popup-code:not(:has(div)) {
8+
max-width: 600px;
9+
display: block;
10+
width: fit-content;
11+
min-width: 100%;
12+
padding: 6px 12px;
13+
white-space: pre-wrap;
14+
15+
span {
16+
display: inline-block;
17+
}
18+
}

packages/ui-components/src/Common/BaseCodeBox/index.module.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
.root {
44
@apply w-full
5-
translate-x-0
6-
translate-y-0
7-
transform
85
rounded-sm
96
border
107
border-neutral-900

0 commit comments

Comments
 (0)