[ui] show raw attr in ellipsis title

feat/vaults
Tomáš Mládek 2022-02-07 16:32:21 +01:00
parent deac0beb05
commit 267e427a87
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<script lang="ts">
export let value: string;
export let title: string | undefined = undefined;
$: valueStart = value.substring(0, value.length - 7).replace(" ", "\xa0");
$: valueEnd = value
@ -7,7 +8,7 @@
.replace(" ", "\xa0");
</script>
<div class="ellipsis" title={value}>
<div class="ellipsis" title={title || value}>
<div class="start">{valueStart}</div>
<div class="end">{valueEnd}</div>
</div>

View File

@ -283,6 +283,7 @@
<td class:formatted={Boolean(formatAttribute(entry.attribute))}>
<Ellipsis
value={formatAttribute(entry.attribute) || entry.attribute}
title={entry.attribute}
/>
</td>
{/if}