Skip to content

Commit 9672101

Browse files
committed
fix some of the more egregious styling issues in the console
1 parent 926b033 commit 9672101

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

packages/repl/src/lib/Output/console/Console.svelte

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
--warning-border: rgb(242, 232, 163);
3838
--json-tree-string-color: var(--shiki-token-string);
3939
--json-tree-font-family: var(--sk-font-family-mono);
40+
--json-tree-font-size: 1.2rem;
41+
--json-tree-li-line-height: 1.5;
4042
41-
:global(.dark) & {
43+
:root.dark & {
4244
--error-fg: rgb(235, 78, 109);
4345
--error-bg: rgb(71, 48, 54);
4446
--error-border: rgb(109, 65, 76);
@@ -59,5 +61,15 @@
5961
--json-tree-operator-color: #e8eaed;
6062
--json-tree-regex-color: #6cd1c7;
6163
}
64+
65+
:global {
66+
p,
67+
ol,
68+
ul {
69+
font: var(--json-tree-font-family);
70+
font-size: var(--json-tree-font-size);
71+
line-height: 1.5;
72+
}
73+
}
6274
}
6375
</style>

packages/repl/src/lib/Output/console/ConsoleLine.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
font-size: 1.2rem;
222222
margin: 0 1rem 0.4rem calc(1em + var(--indent));
223223
overflow: hidden;
224+
line-height: 1.5;
224225
225226
.location {
226227
position: relative;

0 commit comments

Comments
 (0)