mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
add: default null badge;
update: cell class name.
This commit is contained in:
+11
-3
@@ -635,7 +635,7 @@
|
||||
try {
|
||||
if (VARS.MOCK_AI_SUGGESTIONS) {
|
||||
/* animation */
|
||||
await sleep(NOTIFICATION_AND_MOCK_DELAY * 100);
|
||||
await sleep(NOTIFICATION_AND_MOCK_DELAY);
|
||||
suggestedColumns = mockSuggestions;
|
||||
} else {
|
||||
suggestedColumns = (await sdk
|
||||
@@ -1772,7 +1772,15 @@
|
||||
}
|
||||
}}>
|
||||
{#if !column.custom && row}
|
||||
<span class="u-trim fake-cell">{row[column.id] ?? ''}</span>
|
||||
{@const rowData = row[column.id]}
|
||||
{@const isNullOrUndefined = rowData === null || typeof rowData === 'object'}
|
||||
<span class="u-trim suggestions-empty-fake-cell">
|
||||
{#if isNullOrUndefined}
|
||||
<Badge variant="secondary" content="NULL" size="xs" />
|
||||
{:else}
|
||||
{rowData}
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
</button>
|
||||
{/snippet}
|
||||
@@ -1990,7 +1998,7 @@
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
|
||||
& :global(.fake-cell) {
|
||||
& :global(.suggestions-empty-fake-cell) {
|
||||
min-height: 40px;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user