- {#if data?.allCollections?.total}
-
- {#each sortedCollections as collection}
- {@const href = `${base}/project-${project}/databases/database-${databaseId}/collection-${collection.$id}`}
- {@const isSelected = collectionId === collection.$id}
- -
-
-
- {collection.name}
-
-
- {/each}
-
- {/if}
+{#if !$isTabletViewport}
+
+
+
+
+ {data.database.name}
+
+
+ {#if data?.allCollections?.total}
+
+ {#each sortedCollections as collection}
+ {@const href = `${base}/project-${project}/databases/database-${databaseId}/collection-${collection.$id}`}
+ {@const isSelected = collectionId === collection.$id}
+ -
+
+
+ {collection.name}
+
+
+ {/each}
+
+ {/if}
+
+
+
+
+{:else}
+
+
+
+
+ {data.database.name}
+ /
+
+
-
-
-
+
+{/if}
+{#if openBottomSheet}
+
{
+ return {
+ name: collection.name,
+ leadingIcon: IconTable,
+ href: `${base}/project-${project}/databases/database-${databaseId}/collection-${collection.$id}`
+ };
+ })
+ },
+ bottom: undefined
+ }}>
+{/if}