Post and post comments now save correctly. The viewed post does not always reflect the update though.

This commit is contained in:
Scott Idem
2024-11-07 14:10:10 -05:00
parent b381cbbc9e
commit d3609764e3
8 changed files with 490 additions and 123 deletions

View File

@@ -132,6 +132,9 @@ function getContent() {
}
return '';
}
let mouse_entered_timer: any;
let mouse_entered_wait: number = 2500;
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
@@ -145,11 +148,19 @@ function getContent() {
}
}}
on:mouseleave={() => {
if (default_minimal) {
show_menu = false;
}
mouse_entered_timer = setTimeout(() => {
if (default_minimal) {
show_menu = false;
}
}, mouse_entered_wait);
// if (default_minimal) {
// show_menu = false;
// }
}}
on:mouseenter={() => {
clearTimeout(mouse_entered_timer);
if (default_minimal) {
show_menu = true;
}
@@ -164,7 +175,7 @@ function getContent() {
<!-- class:opacity-100={show_menu} -->
{#if editor && show_menu}
<div
transition:fade={{delay: 150, duration: 750, easing: cubicOut}}
transition:fade={{delay: 250, duration: 750, easing: cubicOut}}
class="
control-group button-group
bg-gray-200