mirror of
https://github.com/Ellpeck/ObsidianSimpleTimeTracker.git
synced 2024-11-28 12:08:34 +01:00
fix: Remove unneeded wrapper code
This commit is contained in:
parent
c587f83890
commit
19f37fe56a
1 changed files with 1 additions and 5 deletions
|
@ -333,11 +333,7 @@ function addEditableTableRow(tracker: Tracker, entry: Entry, table: HTMLTableEle
|
||||||
await saveTracker(tracker, this.app, getFile(), getSectionInfo());
|
await saveTracker(tracker, this.app, getFile(), getSectionInfo());
|
||||||
});
|
});
|
||||||
if (!entry.subEntries?.length) expandButton.buttonEl.style.visibility = 'hidden';
|
if (!entry.subEntries?.length) expandButton.buttonEl.style.visibility = 'hidden';
|
||||||
let nameWrapper = nameField.cell.createDiv({cls: "simple-time-tracker-table-expandwrapper"});
|
nameField.cell.insertBefore(expandButton.buttonEl, nameField.label);
|
||||||
nameWrapper.style.marginLeft = nameField.label.style.marginLeft;
|
|
||||||
nameField.label.style.marginLeft = null;
|
|
||||||
nameWrapper.insertBefore(expandButton.buttonEl, null);
|
|
||||||
nameWrapper.insertBefore(nameField.label, null);
|
|
||||||
|
|
||||||
let entryButtons = row.createEl("td");
|
let entryButtons = row.createEl("td");
|
||||||
entryButtons.addClass("simple-time-tracker-table-buttons");
|
entryButtons.addClass("simple-time-tracker-table-buttons");
|
||||||
|
|
Loading…
Reference in a new issue