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.
@@ -428,9 +428,10 @@
428
428
  : typeof row[text.key] == "object"
429
429
  ? JSON.stringify(row[text.key])
430
430
  : row[text.key]}
431
- <div class="flex items-center">
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="w-fit cursor-pointer text-left"
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.31.6",
3
+ "version": "1.31.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {