poe-svelte-ui-lib 1.1.2 → 1.1.4

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.
@@ -222,7 +222,7 @@
222
222
 
223
223
  {#if column.overflow?.copy}
224
224
  <button
225
- class="m-2 flex cursor-pointer border-none bg-transparent text-2xl"
225
+ class="mx-2 flex cursor-pointer border-none bg-transparent text-2xl"
226
226
  onclick={(e) => {
227
227
  e.preventDefault()
228
228
  navigator.clipboard.writeText(row[column.key])
@@ -231,18 +231,20 @@
231
231
  }}
232
232
  aria-label="Копировать текст"
233
233
  >
234
- {#if copiedCell.y === index && copiedCell.x === column.key}
235
- <div class="rounded-md bg-[var(--green-color)] px-2 py-1 text-sm shadow-lg">✓</div>
236
- {:else}
237
- <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
238
- <g fill="none" stroke="currentColor" stroke-width="1.5">
239
- <path
240
- d="M6 11c0-2.828 0-4.243.879-5.121C7.757 5 9.172 5 12 5h3c2.828 0 4.243 0 5.121.879C21 6.757 21 8.172 21 11v5c0 2.828 0 4.243-.879 5.121C19.243 22 17.828 22 15 22h-3c-2.828 0-4.243 0-5.121-.879C6 20.243 6 18.828 6 16z"
241
- />
242
- <path d="M6 19a3 3 0 0 1-3-3v-6c0-3.771 0-5.657 1.172-6.828S7.229 2 11 2h4a3 3 0 0 1 3 3" />
243
- </g>
244
- </svg>
245
- {/if}
234
+ <div class=" size-5 text-sm [&_svg]:h-full [&_svg]:max-h-full [&_svg]:w-full [&_svg]:max-w-full">
235
+ {#if copiedCell.y === index && copiedCell.x === column.key}
236
+ <div class="rounded-md bg-[var(--green-color)] shadow-lg">✓</div>
237
+ {:else}
238
+ <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
239
+ <g fill="none" stroke="currentColor" stroke-width="1.5">
240
+ <path
241
+ d="M6 11c0-2.828 0-4.243.879-5.121C7.757 5 9.172 5 12 5h3c2.828 0 4.243 0 5.121.879C21 6.757 21 8.172 21 11v5c0 2.828 0 4.243-.879 5.121C19.243 22 17.828 22 15 22h-3c-2.828 0-4.243 0-5.121-.879C6 20.243 6 18.828 6 16z"
242
+ />
243
+ <path d="M6 19a3 3 0 0 1-3-3v-6c0-3.771 0-5.657 1.172-6.828S7.229 2 11 2h4a3 3 0 0 1 3 3" />
244
+ </g>
245
+ </svg>
246
+ {/if}
247
+ </div>
246
248
  </button>
247
249
  {/if}
248
250
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {