Skip to content

Commit 4dddd0d

Browse files
Copilotmrjf
andauthored
Address review feedback: sync scroll on resize, use CSS variable for font
Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/8acf129f-eb1b-4d7f-858c-d6e0399628fc Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
1 parent 8612826 commit 4dddd0d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

playground/playground-runtime.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function injectHighlightStyles() {
250250
"border:1px solid transparent;border-top:none;border-bottom:none;" +
251251
"border-radius:0;" +
252252
"padding:1rem;" +
253-
"font-family:'Cascadia Code','Fira Code','JetBrains Mono',monospace;" +
253+
"font-family:var(--font-mono,'Cascadia Code','Fira Code','JetBrains Mono',monospace);" +
254254
"font-size:0.875rem;line-height:1.55;" +
255255
"white-space:pre;tab-size:2;overflow:hidden;" +
256256
"color:#e6edf3;" +
@@ -322,6 +322,7 @@ function setupBlock(block, ts) {
322322
function autoResize() {
323323
editor.style.height = "auto";
324324
editor.style.height = editor.scrollHeight + 2 + "px";
325+
syncScroll();
325326
}
326327
editor.addEventListener("input", autoResize);
327328
autoResize();

0 commit comments

Comments
 (0)