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