Files
windmill/frontend/src/lib/components/PageHeader.svelte
Ádám Kovács 3e5a179eb8 fix(frontend): General fixes and updates (#1281)
* fix(frontend): App icon select double click issue

* fix(frontend): Update script metadata page

* fix(frontend): Set dropdown default icon to vertical dots

* fix(frontend): Clean up

* fix(frontend): Update table styles

* fix(frontend): Add spacing to secondary menu items

* fix(frontend): Scale down full path

* fix(frontend): Table loading state

* fix(frontend): Hide script kind setting by default
2023-03-13 14:17:57 +01:00

32 lines
639 B
Svelte

<script lang="ts">
import Tooltip from './Tooltip.svelte'
export let title: string
export let tooltip: string = ''
export let primary: boolean = true
</script>
<div class="flex flex-row flex-wrap justify-between mt-4 mb-2 min-h-[48px]">
{#if primary}
<span class="flex items-center space-x-2 mb-2">
<h1>{title}</h1>
{#if tooltip}
<Tooltip scale={0.9}>{tooltip}</Tooltip>
{/if}
</span>
{:else}
<span class="flex items-center space-x-2">
<h2>{title}</h2>
{#if tooltip}
<Tooltip>{tooltip}</Tooltip>
{/if}
</span>
{/if}
{#if $$slots.default}
<div class="my-2">
<slot />
</div>
{/if}
</div>