Skip to content

Commit

Permalink
chore: fix a svelte 5 unused css warning
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Oct 22, 2024
1 parent ac0f59e commit d0fae20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/modes/tablemode/RefreshColumnHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
export let count: number
export let maxSampleCount: number
export let readOnly: boolean
export let onRefresh: () => void
</script>

<button
type="button"
class="jse-column-header"
class:jse-readonly={readOnly}
title={`The Columns are created by sampling ${maxSampleCount} items out of ${count}. ` +
"If you're missing a column, click here to sample all of the items instead of a subset. " +
'This is slower.'}
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/modes/tablemode/TableMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,7 @@
<RefreshColumnHeader
count={Array.isArray(json) ? json.length : 0}
{maxSampleCount}
{readOnly}
onRefresh={() => (maxSampleCount = Infinity)}
/>
</th>
Expand Down

0 comments on commit d0fae20

Please sign in to comment.