mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: title and mobile navbar.
This commit is contained in:
1 parent
2b3cd7afeb
commit
5ccbaa1acc
3 files changed
+11
-3
No files matched your search
@@ -6,7 +6,7 @@
|
||||
export let href: string = null;
|
||||
</script>
|
||||
|
||||
<Layout.Stack justifyContent="center" alignItems="center" direction="row" gap="xs" inline>
|
||||
<Layout.Stack justifyContent="center" alignItems="center" direction="row" gap="xs" inline {...$$restProps}>
|
||||
{#if href}
|
||||
<span style:position="relative">
|
||||
<Button.Anchor size="s" icon variant="text" {href} aria-label="page back">
|
||||
@@ -14,6 +14,7 @@
|
||||
</Button.Anchor>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
<Typography.Title
|
||||
truncate
|
||||
color="--fgcolor-neutral-primary"
|
||||
|
||||
+6
-1
@@ -40,9 +40,14 @@
|
||||
|
||||
<Cover databasesMainScreen>
|
||||
<svelte:fragment slot="header">
|
||||
<CoverTitle href={`${base}/project-${page.params.region}-${projectId}/databases`}>
|
||||
<CoverTitle
|
||||
style="margin-inline-start: -2.5rem;"
|
||||
href={`${base}/project-${page.params.region}-${projectId}/databases`}
|
||||
>
|
||||
{$database.name}
|
||||
|
||||
</CoverTitle>
|
||||
|
||||
<Id value={$database.$id}>{$database.$id}</Id>
|
||||
</svelte:fragment>
|
||||
|
||||
|
||||
+3
-1
@@ -41,6 +41,8 @@
|
||||
sortedTables?.find((table: Models.Table) => table.$id === tableId)
|
||||
);
|
||||
|
||||
const isMainDatabaseScreen = $derived(page.route.id.endsWith('database-[database]'))
|
||||
|
||||
async function loadTables() {
|
||||
tables = await sdk.forProject(region, project).tablesDB.listTables({
|
||||
databaseId: databaseId,
|
||||
@@ -134,7 +136,7 @@
|
||||
</div>
|
||||
</section>
|
||||
</Sidebar.Base>
|
||||
{:else if data?.database?.name}
|
||||
{:else if data?.database?.name && !isMainDatabaseScreen}
|
||||
<Navbar.Base>
|
||||
<div slot="left">
|
||||
<Layout.Stack direction="row" alignItems="center" gap="s">
|
||||
|
||||
Reference in new issue
Block a user