poe-svelte-ui-lib 1.31.6 → 1.31.7
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/Table/Table.svelte +4 -3
- package/package.json +1 -1
package/dist/Table/Table.svelte
CHANGED
|
@@ -428,9 +428,10 @@
|
|
|
428
428
|
: typeof row[text.key] == "object"
|
|
429
429
|
? JSON.stringify(row[text.key])
|
|
430
430
|
: row[text.key]}
|
|
431
|
-
|
|
431
|
+
<!-- w-full + min-w-0: при justify-items-start ячейка иначе берёт ширину по содержимому и truncate не даёт «…» -->
|
|
432
|
+
<div class="flex w-full min-w-0 items-center">
|
|
432
433
|
<div
|
|
433
|
-
class="w-full max-w-full wrap-break-word {text?.truncated ? 'truncate' : ' whitespace-normal'}"
|
|
434
|
+
class="w-full max-w-full min-w-0 wrap-break-word {text?.truncated ? 'truncate' : ' whitespace-normal'}"
|
|
434
435
|
onmouseenter={text?.tooltip ? (e) => showTooltip(e, row[text?.key ?? ""], text?.formatting) : undefined}
|
|
435
436
|
onmouseleave={() => (text?.tooltip ? (tooltip.show = false) : undefined)}
|
|
436
437
|
onmousemove={text?.tooltip
|
|
@@ -444,7 +445,7 @@
|
|
|
444
445
|
>
|
|
445
446
|
{#if text?.modal}
|
|
446
447
|
<button
|
|
447
|
-
class="
|
|
448
|
+
class="cursor-pointer text-left {text?.truncated ? 'block w-full max-w-full truncate' : 'w-fit'}"
|
|
448
449
|
onclick={(e) => {
|
|
449
450
|
e.stopPropagation()
|
|
450
451
|
showModal(data.replace(/<[^>]*>/g, ""), text?.formatting)
|