feat: better implementation

This commit is contained in:
Arman committed 2022-10-11 15:26:01 +02:00
1 parent 2a4f1b9824
commit ed6ea56617
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
</script>
<div
style={`--p-col-width:${width?.toString() ?? ''}`}
style={width ? `--p-col-width:${width?.toString()}` : ''}
class="table-col"
class:u-overflow-visible={showOverflow}
class:is-only-desktop={onlyDesktop}
+4 -1
View File
@@ -2,7 +2,10 @@
export let width: number = null;
</script>
<div style={`--p-col-width:${width?.toString() ?? ''}`} class="table-thead-col" role="columnheader">
<div
style={width ? `--p-col-width:${width?.toString()}` : ''}
class="table-thead-col"
role="columnheader">
<span class="eyebrow-heading-3">
<slot />
</span>