@invopop/popui 0.1.60 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataListItem.svelte +5 -4
- package/package.json +1 -1
package/dist/DataListItem.svelte
CHANGED
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
}: DataListItemProps = $props()
|
|
17
17
|
|
|
18
18
|
let valueStyles = $derived(
|
|
19
|
-
clsx('text-foreground font-medium text-base
|
|
20
|
-
'font-mono slashed-zero tabular-nums lining-nums': monospaced
|
|
19
|
+
clsx('text-foreground font-medium text-base min-w-0', {
|
|
20
|
+
'font-mono slashed-zero tabular-nums lining-nums': monospaced,
|
|
21
|
+
truncate: !children
|
|
21
22
|
})
|
|
22
23
|
)
|
|
23
24
|
|
|
@@ -54,12 +55,12 @@
|
|
|
54
55
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
55
56
|
<div
|
|
56
57
|
class={clsx(
|
|
57
|
-
'flex flex-1 gap-1 items-
|
|
58
|
+
'flex flex-1 gap-1.5 items-start group-hover:bg-background-default-secondary py-1 pl-2 pr-1 rounded-md min-w-0 min-h-8',
|
|
58
59
|
{ 'cursor-pointer': clickAction }
|
|
59
60
|
)}
|
|
60
61
|
onclick={clickAction ? handleAreaClick : undefined}
|
|
61
62
|
>
|
|
62
|
-
<div class="flex-1 min-w-0">
|
|
63
|
+
<div class="flex-1 min-w-0 overflow-x-auto">
|
|
63
64
|
<div class={valueStyles}>
|
|
64
65
|
{#if children}
|
|
65
66
|
{@render children()}
|