Merge pull request #72 from appwrite/refactor-cell-width

refactor: cell width
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2022-10-12 12:25:55 +02:00
commit aa2be7053e
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
</script>
<div
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={`width: ${width?.toString() + 'px' ?? ''}`} 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>