mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-30 01:17:37 +03:00
Fix loading status tooltip
This commit is contained in:
parent
50209b4bf7
commit
33908a292f
@ -2,8 +2,10 @@
|
||||
import { offset, flip, shift } from 'svelte-floating-ui/dom';
|
||||
import { createFloatingActions } from 'svelte-floating-ui';
|
||||
|
||||
export let label: string | undefined = undefined;
|
||||
type Placement = 'top' | 'right' | 'bottom' | 'left';
|
||||
const SLOTS = $$props.$$slots;
|
||||
|
||||
export let label: string | undefined = undefined;
|
||||
export let placement: Placement = 'bottom';
|
||||
export let timeoutMilliseconds = 1500;
|
||||
|
||||
@ -17,7 +19,7 @@
|
||||
let timeout: ReturnType<typeof setTimeout>;
|
||||
</script>
|
||||
|
||||
{#if label}
|
||||
{#if label || SLOTS.label}
|
||||
<div
|
||||
role="tooltip"
|
||||
class="wrapper"
|
||||
|
Loading…
Reference in New Issue
Block a user