mirror of
https://github.com/poanse/obsidian-taskmap.git
synced 2026-07-22 06:05:58 +00:00
addtask button not disappearing fix
This commit is contained in:
parent
30dee603fd
commit
47b817dd67
1 changed files with 2 additions and 2 deletions
|
|
@ -16,11 +16,9 @@
|
|||
let entered = $state(false);
|
||||
function onEnter() {
|
||||
entered = true;
|
||||
console.log('enter');
|
||||
}
|
||||
function onLeave() {
|
||||
entered = false;
|
||||
console.log('leave');
|
||||
}
|
||||
function addButtonPressed (event: MouseEvent) {
|
||||
console.log('add icon clicked')
|
||||
|
|
@ -33,6 +31,7 @@
|
|||
<div class="hover-area"
|
||||
onmouseenter={onEnter}
|
||||
onmouseleave={onLeave}
|
||||
onblur={onLeave}
|
||||
style="
|
||||
left: {TASK_SIZE.width - 50/2}px;
|
||||
top: {TASK_SIZE.height/2 - 50/2}px;
|
||||
|
|
@ -52,6 +51,7 @@
|
|||
onmouseenter={onEnter}
|
||||
onmouseleave={onLeave}
|
||||
onclick={addButtonPressed}
|
||||
onblur={onLeave}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"
|
||||
|
|
|
|||
Loading…
Reference in a new issue