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

refactor: cell width
This commit is contained in:
Torsten Dittmann
2022-10-12 12:25:55 +02:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+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>