mirror of
https://github.com/bytedream/stream-bypass.git
synced 2026-08-05 05:20:41 +02:00
unify headers
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user