Skip to content

Commit 79feb57

Browse files
committed
fix: code scroll issue on small screen
1 parent 26885a8 commit 79feb57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@
22

33
.root {
44
@apply w-full
5+
max-w-full
6+
overflow-hidden
57
rounded-sm
68
border
79
border-neutral-900
810
bg-neutral-950;
911

1012
.content {
1113
@apply m-0
14+
min-w-0
1215
p-4;
1316

1417
& > code {
1518
@apply font-ibm-plex-mono
1619
font-regular
1720
scrollbar-thin
1821
grid
22+
max-w-full
1923
overflow-x-auto
2024
bg-transparent
2125
p-0

0 commit comments

Comments
 (0)