Improve layout address list peer detail

This commit is contained in:
Michael Klein 2022-10-26 15:44:59 +02:00
parent 676e8afaf9
commit b7c5229e79
1 changed files with 25 additions and 15 deletions

View File

@ -1,15 +1,25 @@
<ListCollection
class="consul-peer-address-list"
...attributes
<Providers::Dimension as |p|>
{{#if p.data.height}}
<div style={{p.data.fillRemainingHeightStyle}} class="overflow-y-scroll">
<VerticalCollection
@tagName="ul"
@estimateHeight={{p.data.height}}
@items={{@items}}
as |item|>
<BlockSlot @name="header">
<p>
{{item}}
as |address index|
>
<li
class="px-3 h-12 hds-border-primary border-t-0 border-l-0 border-r-0 flex items-center justify-between group"
>
<div
class="hds-typography-display-300 text-hds-foreground-strong hds-font-weight-semibold"
>{{address}}</div>
<CopyButton
@value={{item}}
@value={{address}}
@name="Address"
class="opacity-0 group-hover:opacity-100"
/>
</p>
</BlockSlot>
</ListCollection>
</li>
</VerticalCollection>
</div>
{{/if}}
</Providers::Dimension>