Skip to content

Commit a1cf9e4

Browse files
committed
Add code css
1 parent 04b44e6 commit a1cf9e4

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

packages/smooth-code/src/index.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@
66
padding-right: 1.5ch;
77
font-variant-numeric: tabular-nums;
88
}
9+
10+
.ch-code-scroll-parent {
11+
display: block;
12+
font-weight: normal;
13+
font-size: 14px;
14+
line-height: 19px;
15+
letter-spacing: 0px;
16+
}

packages/smooth-code/src/smooth-container.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ function Container({
100100
width,
101101
height,
102102
position: "relative",
103-
display: "block",
104103
overflow: "auto",
105104
}}
106105
className="ch-code-scroll-parent"

packages/smooth-code/src/use-dimensions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function useDimensions(
6868
const lineCount = lines.length
6969

7070
const element = (
71-
<code style={{ display: "block" }}>
71+
<code className="ch-code-scroll-parent">
7272
<br />
7373
{lines.map((line, i) => (
7474
<div

0 commit comments

Comments
 (0)