author fix
This commit is contained in:
Generated
+1
-1
@@ -2433,7 +2433,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustpad"
|
name = "rustpad"
|
||||||
version = "0.0.28"
|
version = "0.0.29"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"argon2",
|
"argon2",
|
||||||
"aws-config",
|
"aws-config",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rustpad"
|
name = "rustpad"
|
||||||
version = "0.0.28"
|
version = "0.0.29"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.94"
|
rust-version = "1.94"
|
||||||
description = "Collaborative Markdown notepad built with Axum, WebSockets and SQLite, PostgreSQL and MySQL"
|
description = "Collaborative Markdown notepad built with Axum, WebSockets and SQLite, PostgreSQL and MySQL"
|
||||||
|
|||||||
@@ -61,7 +61,9 @@ function renderGutter() {
|
|||||||
if (showSingleOwner) {
|
if (showSingleOwner) {
|
||||||
const owner = owners[0];
|
const owner = owners[0];
|
||||||
const top = paddingTop - editor.scrollTop;
|
const top = paddingTop - editor.scrollTop;
|
||||||
ownerLabels.innerHTML = `<span class="owner-label-group" style="top:${top}px"><span class="owner-label" style="--owner:${colorFor(owner)}">${escapeHtml(ownerName(owner))}</span></span>`;
|
const markerHeight = Math.max(lineHeight, lineCount * lineHeight);
|
||||||
|
const ownerColor = colorFor(owner);
|
||||||
|
ownerLabels.innerHTML = `<span class="owner-line owner-line--document" style="top:${top}px;height:${markerHeight}px;--owner:${ownerColor}"></span><span class="owner-label-group" style="top:${top}px"><span class="owner-label" style="--owner:${ownerColor}">${escapeHtml(ownerName(owner))}</span></span>`;
|
||||||
} else {
|
} else {
|
||||||
let previousAuthorSignature = null;
|
let previousAuthorSignature = null;
|
||||||
ownerLabels.innerHTML = lines.map((_, i) => {
|
ownerLabels.innerHTML = lines.map((_, i) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user