diff --git a/src/routes/notes_.$.tsx b/src/routes/notes_.$.tsx index 7b385a7e..e0fc523b 100644 --- a/src/routes/notes_.$.tsx +++ b/src/routes/notes_.$.tsx @@ -494,7 +494,17 @@ function NotePage() { } > -
+ {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */} +
{ + // Double click to edit + if (mode === "read" && event.detail > 1) { + event.preventDefault() + switchToWriting() + } + }} + >
{isDailyNote || isWeeklyNote ? : null} - {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */} -