mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: use is-main correctly
This commit is contained in:
1 parent
95918690ff
commit
eff2c3fd5c
2 files changed
+7
-4
No files matched your search
@@ -1,10 +1,12 @@
|
||||
<script lang="ts">
|
||||
export let title: string;
|
||||
export let showOverflow = false;
|
||||
export let main = false;
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="table-col is-main"
|
||||
class="table-col"
|
||||
class:is-main={main}
|
||||
class:u-overflow-visible={showOverflow}
|
||||
data-title={title}
|
||||
role="cell">
|
||||
|
||||
+4
-3
@@ -5,7 +5,8 @@
|
||||
TableBody,
|
||||
TableRow,
|
||||
TableCellHead,
|
||||
TableCellText
|
||||
TableCellText,
|
||||
TableCell
|
||||
} from '$lib/elements/table';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { DropList, DropListItem, Empty, Pagination } from '$lib/components';
|
||||
@@ -53,7 +54,7 @@
|
||||
<TableBody>
|
||||
{#each $collection.attributes as attribute, index}
|
||||
<TableRow>
|
||||
<TableCellText title="Key"
|
||||
<TableCell main title="Key"
|
||||
>{attribute.key}
|
||||
{#if attribute.status !== 'available'}
|
||||
<Pill
|
||||
@@ -66,7 +67,7 @@
|
||||
{:else if attribute.required}
|
||||
<Pill>Required</Pill>
|
||||
{/if}
|
||||
</TableCellText>
|
||||
</TableCell>
|
||||
<TableCellText title="Type">{attribute.type}</TableCellText>
|
||||
<TableCellText title="Default Value">
|
||||
{attribute.default ? attribute.default : '-'}
|
||||
|
||||
Reference in new issue
Block a user