Post and post comments now save correctly. The viewed post does not always reflect the update though.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user