Skip to content

Commit 634b711

Browse files
committed
backport font fix to v0.6.x series
1 parent b271c55 commit 634b711

3 files changed

Lines changed: 7 additions & 13 deletions

File tree

go.work.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
github.com/aws/aws-sdk-go-v2/service/s3 v1.27.11 h1:3/gm/JTX9bX8CpzTgIlrtYpB3EVBDxyg/GY/QdcIEZw=
12
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
23
github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=
34
github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=

src/app/line/lines.less

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,14 @@
8484
}
8585

8686
.meta.meta-line1 {
87-
margin-left: 2px;
8887
color: rgba(@base-color, 0.6) !important;
8988
font-size: 11px;
9089
}
9190

91+
.meta.meta-line2 {
92+
margin-left: -2px;
93+
}
94+
9295
&.has-rtnstate .terminal-wrapper {
9396
padding-bottom: 0;
9497
}
@@ -113,11 +116,6 @@
113116
overflow-x: hidden;
114117
}
115118

116-
.terminal {
117-
margin-right: 8px;
118-
padding: 0.25rem;
119-
}
120-
121119
&.cmd-done .terminal .xterm-cursor {
122120
display: none;
123121
}

src/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,9 @@ document.addEventListener("DOMContentLoaded", () => {
2020
let reactElem = React.createElement(App, null, null);
2121
let elem = document.getElementById("app");
2222
let root = createRoot(elem);
23-
let isFontLoaded = document.fonts.check("12px 'JetBrains Mono'");
24-
if (isFontLoaded) {
23+
document.fonts.ready.then(() => {
2524
root.render(reactElem);
26-
} else {
27-
document.fonts.ready.then(() => {
28-
root.render(reactElem);
29-
});
30-
}
25+
});
3126
});
3227

3328
(window as any).mobx = mobx;

0 commit comments

Comments
 (0)