Properly handle text overflow in plugins table
This commit is contained in:
parent
6b39256184
commit
ee6abf9200
|
@ -8,19 +8,29 @@
|
||||||
$: friendlyName = row?.schema?.schema?.friendlyName
|
$: friendlyName = row?.schema?.schema?.friendlyName
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div title={value}>
|
<div class="container" title={value}>
|
||||||
{#if icon}
|
{#if icon}
|
||||||
<Icon name={icon} />
|
<Icon name={icon} />
|
||||||
{/if}
|
{/if}
|
||||||
{friendlyName || value}
|
<div class="name">
|
||||||
|
{friendlyName || value}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
div {
|
.container {
|
||||||
|
flex: 1 1 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--spacing-m);
|
gap: var(--spacing-m);
|
||||||
}
|
}
|
||||||
|
.name {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue