diff --git a/frontend/src/lib/components/jobs/JobPreview.svelte b/frontend/src/lib/components/jobs/JobPreview.svelte index 75ff539ddb..972cff6799 100644 --- a/frontend/src/lib/components/jobs/JobPreview.svelte +++ b/frontend/src/lib/components/jobs/JobPreview.svelte @@ -16,15 +16,18 @@ import { forLater } from '$lib/forLater' import DurationMs from '../DurationMs.svelte' import { workspaceStore } from '$lib/stores' + import { twMerge } from 'tailwind-merge' const POPUP_HEIGHT = 320 as const interface Props { id: string children?: import('svelte').Snippet<[any]> + class?: string } - let { id, children }: Props = $props() + let { id, children, class: clazz }: Props = $props() + let job: Job | undefined = $state(undefined) let hovered = $state(false) let timeout: number | undefined @@ -101,11 +104,51 @@ {#if open}