fix: use is-main correctly

This commit is contained in:
Arman committed 2022-07-20 13:36:57 +02:00
1 parent 95918690ff
commit eff2c3fd5c
2 files changed
+7 -4

No files matched your search

+3 -1
View File
@@ -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">
@@ -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 : '-'}