mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix headers
This commit is contained in:
@@ -11,7 +11,9 @@
|
||||
</script>
|
||||
|
||||
{#if isStudio}
|
||||
<slot name="header" />
|
||||
<Layout.Stack direction="row" alignItems="center">
|
||||
<slot name="header" />
|
||||
</Layout.Stack>
|
||||
<slot />
|
||||
{:else}
|
||||
<div class="top-cover-console" class:no-padding={isStudio} style:block-size={blocksize}>
|
||||
|
||||
+20
-22
@@ -50,26 +50,24 @@
|
||||
].filter((tab) => !tab.disabled);
|
||||
</script>
|
||||
|
||||
<div style:margin-top={$isTabletViewport ? '48px' : 0}>
|
||||
<Cover>
|
||||
<svelte:fragment slot="header">
|
||||
<CoverTitle href={`${base}/project-${projectId}/databases/database-${databaseId}`}>
|
||||
{$collection?.name}
|
||||
</CoverTitle>
|
||||
{#key $collection?.$id}
|
||||
<Id value={$collection?.$id}>{$collection?.$id}</Id>
|
||||
{/key}
|
||||
</svelte:fragment>
|
||||
<Cover>
|
||||
<svelte:fragment slot="header">
|
||||
<CoverTitle href={`${base}/project-${projectId}/databases/database-${databaseId}`}>
|
||||
{$collection?.name}
|
||||
</CoverTitle>
|
||||
{#key $collection?.$id}
|
||||
<Id value={$collection?.$id}>{$collection?.$id}</Id>
|
||||
{/key}
|
||||
</svelte:fragment>
|
||||
|
||||
<Tabs>
|
||||
{#each tabs as tab}
|
||||
<Tab
|
||||
href={tab.href}
|
||||
selected={isTabSelected(tab, page.url.pathname, path, tabs)}
|
||||
event={tab.event}>
|
||||
{tab.title}
|
||||
</Tab>
|
||||
{/each}
|
||||
</Tabs>
|
||||
</Cover>
|
||||
</div>
|
||||
<Tabs>
|
||||
{#each tabs as tab}
|
||||
<Tab
|
||||
href={tab.href}
|
||||
selected={isTabSelected(tab, page.url.pathname, path, tabs)}
|
||||
event={tab.event}>
|
||||
{tab.title}
|
||||
</Tab>
|
||||
{/each}
|
||||
</Tabs>
|
||||
</Cover>
|
||||
|
||||
Reference in New Issue
Block a user