From bd7c35e7fb27ff22b58f794c4403c49d4ee3d027 Mon Sep 17 00:00:00 2001 From: James Rupert Tan Date: Fri, 7 Jun 2024 05:51:38 -0500 Subject: [PATCH] fix: Change tooltip based on collapse state --- src/tracker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracker.ts b/src/tracker.ts index 15ffbbe..b1a6e31 100644 --- a/src/tracker.ts +++ b/src/tracker.ts @@ -324,7 +324,7 @@ function addEditableTableRow(tracker: Tracker, entry: Entry, table: HTMLTableEle .setClass("clickable-icon") .setClass("simple-time-tracker-expand-button") .setIcon(`chevron-${entry.collapsed ? 'right' : 'down'}`) - .setTooltip("Collapse") + .setTooltip(entry.collapsed ? "Expand" : "Collapse") .onClick(async () => { if (entry.collapsed) { delete entry.collapsed;