Skip to content
Merged

Table #116

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions src/lib/components/Facets/Facets.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,14 @@
hyphenOpacity="opacity-0"
bind:checked={selectedGroups[group.name]}
bind:group={selectedGroups}
regionSymbol="shrink-0"
>
<p class="font-semibold whitespace-nowrap">
{group.displayName}{group.count !== undefined ? ` (${group.count})` : ''}
</p>
<div class="grid grid-flow-col gap-2">
<p class="font-semibold whitespace-nowrap truncate" title={group.displayName}>
{group.displayName}
</p>
<span>{group.count !== undefined ? ` (${group.count})` : ''}</span>
</div>

<svelte:fragment slot="children">
<!-- If more than 5 choices, show the remaining in the Modal -->
Expand All @@ -210,9 +214,9 @@
selection
multiple
>
<div class="flex gap-2">
<p class="w-max grow truncate">
<span title={item.displayName}>{item.displayName}</span>
<div class="grid grid-flow-col gap-2">
<p class="truncate">
<span class="" title={item.displayName}>{item.displayName}</span>
</p>
<span>({item.count})</span>
</div>
Expand All @@ -237,9 +241,9 @@
selection
multiple
>
<div class="flex gap-2">
<p class="w-max grow truncate">
<span title={item.displayName}>{item.displayName}</span>
<div class="grid grid-flow-col gap-2">
<p class="truncate">
<span class="" title={item.displayName}>{item.displayName}</span>
</p>
<span>({item.count})</span>
</div>
Expand Down
Loading