fixes in ux
This commit is contained in:
+1
-1
@@ -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)=>{
|
||||
|
||||
Reference in New Issue
Block a user