Improve table column width handling when custom widths are applied
This commit is contained in:
parent
58d7a30894
commit
d016db95dd
|
@ -10,6 +10,6 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
max-width: 200px;
|
max-width: var(--max-cell-width);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -41,13 +41,21 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if renderer && (customRenderer || (cellValue != null && cellValue !== ""))}
|
{#if renderer && (customRenderer || (cellValue != null && cellValue !== ""))}
|
||||||
<svelte:component
|
<div style="--max-cell-width: {schema.width ? 'none' : '200px'};">
|
||||||
this={renderer}
|
<svelte:component
|
||||||
{row}
|
this={renderer}
|
||||||
{schema}
|
{row}
|
||||||
value={cellValue}
|
{schema}
|
||||||
on:clickrelationship
|
value={cellValue}
|
||||||
>
|
on:clickrelationship
|
||||||
<slot />
|
>
|
||||||
</svelte:component>
|
<slot />
|
||||||
|
</svelte:component>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
div {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -9,6 +9,6 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
max-width: 200px;
|
max-width: var(--max-cell-width);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue