unify headers

This commit is contained in:
2026-07-07 13:50:05 +02:00
parent c4fea538f0
commit c5deca1b2c
7 changed files with 85 additions and 43 deletions
@@ -1,6 +1,6 @@
<script lang="ts">
import { ArrowLeft } from '@steeze-ui/heroicons';
import { Icon } from '@steeze-ui/svelte-icon';
import BackButton from '@/entrypoints/popup/components/BackButton.svelte';
import PageHeader from '@/entrypoints/popup/components/PageHeader.svelte';
/* types */
interface Props {
@@ -12,16 +12,8 @@
let { domain, onBackClick }: Props = $props();
</script>
<div class="flex items-center gap-2 px-3 py-2.5">
<button
type="button"
class="flex items-center justify-center w-7 h-7 rounded-md text-gray-300 hover:text-gray-100 hover:bg-gray-800/60 cursor-pointer transition-colors"
onclick={() => onBackClick()}
>
<Icon src={ArrowLeft} size="1.1rem" />
</button>
<div class="min-w-0">
<h1 class="text-lg font-semibold text-gray-100 leading-tight">Site settings</h1>
<p class="text-xs text-gray-400 leading-tight truncate" title={domain}>{domain}</p>
</div>
</div>
<PageHeader title="Site settings" subtitle={domain}>
{#snippet actionsLeft()}
<BackButton onclick={onBackClick} />
{/snippet}
</PageHeader>