fixes in ux

This commit is contained in:
Mateusz Gruszczyński
2026-07-20 23:29:50 +02:00
parent 867e2be96b
commit 9afaa3dc60
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function renderGutter(){
const lines=editor.value.split("\n");
owners=owners.slice(0,lines.length);
while(owners.length<lines.length)owners.push(owners.at(-1)||nickname||"");
gutter.innerHTML=lines.map((_,i)=>{const owner=owners[i]||"";return `<div title="${escapeHtml(owner||"no author")}" style="--owner:${colorFor(owner)}">${i+1}</div>`;}).join("");
gutter.innerHTML=lines.map((_,i)=>`<div>${i+1}</div>`).join("");
const style=getComputedStyle(editor), lineHeight=parseFloat(style.lineHeight)||29, paddingTop=parseFloat(style.paddingTop)||24;
ownerLabels.style.setProperty("--editor-line-height",`${lineHeight}px`);
ownerLabels.innerHTML=lines.map((_,i)=>{