Skip to content

Commit 4fed477

Browse files
Fix link line heights (#58)
1 parent 2c82e8f commit 4fed477

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/components/LinePart/index.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
display: inline-block;
99
}
1010

11+
.noWrapLine {
12+
display: ruby;
13+
}
14+
1115
.black { color: #4e4e4e; }
1216
.red { color: #ff6c60; }
1317
.green { color: #00aa00; }

src/components/LinePart/index.module.css.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ declare namespace IndexModuleCssNamespace {
3030
yellow: string;
3131
yellowBg: string;
3232
yellowBold: string;
33+
wrapLine: string;
34+
noWrapLine: string;
3335
}
3436
}
3537

src/components/LinePart/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const getClassName = (part: LinePartCss, wrapLines: boolean) => {
2828

2929
if (wrapLines) {
3030
className.push(styles.wrapLine);
31+
} else {
32+
className.push(styles.noWrapLine);
3133
}
3234

3335
if (part.background) {

0 commit comments

Comments
 (0)