mirror of https://github.com/status-im/consul.git
Improve layout address list peer detail
This commit is contained in:
parent
41e50a0f8d
commit
ca0dbe2052
|
@ -1,15 +1,25 @@
|
||||||
<ListCollection
|
<Providers::Dimension as |p|>
|
||||||
class="consul-peer-address-list"
|
{{#if p.data.height}}
|
||||||
...attributes
|
<div style={{p.data.fillRemainingHeightStyle}} class="overflow-y-scroll">
|
||||||
|
<VerticalCollection
|
||||||
|
@tagName="ul"
|
||||||
|
@estimateHeight={{p.data.height}}
|
||||||
@items={{@items}}
|
@items={{@items}}
|
||||||
as |item|>
|
as |address index|
|
||||||
<BlockSlot @name="header">
|
>
|
||||||
<p>
|
<li
|
||||||
{{item}}
|
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
|
<CopyButton
|
||||||
@value={{item}}
|
@value={{address}}
|
||||||
@name="Address"
|
@name="Address"
|
||||||
|
class="opacity-0 group-hover:opacity-100"
|
||||||
/>
|
/>
|
||||||
</p>
|
</li>
|
||||||
</BlockSlot>
|
</VerticalCollection>
|
||||||
</ListCollection>
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</Providers::Dimension>
|
Loading…
Reference in New Issue