From 5bd9fefe606c447a41d7c3a9dcd7b8daeca613bf Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 26 Feb 2024 14:41:25 +0100 Subject: [PATCH] only indent the names, not the values --- src/tracker.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tracker.ts b/src/tracker.ts index eac1728..02ed3b6 100644 --- a/src/tracker.ts +++ b/src/tracker.ts @@ -331,8 +331,8 @@ class EditableField { class EditableTimestampField extends EditableField { settings: SimpleTimeTrackerSettings; - constructor(row: HTMLTableRowElement, indent: number, value: string, settings: SimpleTimeTrackerSettings) { - super(row, indent, value ? formatTimestamp(value, settings) : ""); + constructor(row: HTMLTableRowElement, value: string, settings: SimpleTimeTrackerSettings) { + super(row, 0, value ? formatTimestamp(value, settings) : ""); this.settings = settings; } @@ -367,8 +367,8 @@ function addEditableTableRow(tracker: Tracker, entry: Entry, table: HTMLTableEle let row = table.createEl("tr"); let nameField = new EditableField(row, indent, entry.name); - let startField = new EditableTimestampField(row, indent, (entry.startTime), settings); - let endField = new EditableTimestampField(row, indent, (entry.endTime), settings); + let startField = new EditableTimestampField(row, (entry.startTime), settings); + let endField = new EditableTimestampField(row, (entry.endTime), settings); row.createEl("td", {text: entry.endTime || entry.subEntries ? formatDuration(getDuration(entry), settings) : ""});