diff --git a/frontend/src/app/bisq/bisq-address/bisq-address.component.html b/frontend/src/app/bisq/bisq-address/bisq-address.component.html index 3a66b68b3..c2cbbb76a 100644 --- a/frontend/src/app/bisq/bisq-address/bisq-address.component.html +++ b/frontend/src/app/bisq/bisq-address/bisq-address.component.html @@ -1,11 +1,9 @@

Address

- - - - - + + +
diff --git a/frontend/src/app/bisq/bisq-transaction/bisq-transaction.component.html b/frontend/src/app/bisq/bisq-transaction/bisq-transaction.component.html index 0c53bceab..11f981774 100644 --- a/frontend/src/app/bisq/bisq-transaction/bisq-transaction.component.html +++ b/frontend/src/app/bisq/bisq-transaction/bisq-transaction.component.html @@ -7,11 +7,11 @@
- - + + - +
diff --git a/frontend/src/app/components/address/address-preview.component.html b/frontend/src/app/components/address/address-preview.component.html index 5ff9616af..1924d1a4c 100644 --- a/frontend/src/app/components/address/address-preview.component.html +++ b/frontend/src/app/components/address/address-preview.component.html @@ -14,9 +14,7 @@ Unconfidential - - - + diff --git a/frontend/src/app/components/address/address.component.html b/frontend/src/app/components/address/address.component.html index d6c141efa..d3b23315a 100644 --- a/frontend/src/app/components/address/address.component.html +++ b/frontend/src/app/components/address/address.component.html @@ -2,11 +2,9 @@

Address

@@ -22,11 +20,9 @@ Unconfidential - - - - - + + + diff --git a/frontend/src/app/components/asset/asset.component.html b/frontend/src/app/components/asset/asset.component.html index 1608f2355..862055f22 100644 --- a/frontend/src/app/components/asset/asset.component.html +++ b/frontend/src/app/components/asset/asset.component.html @@ -2,11 +2,9 @@

Asset

diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index 8c0cfe967..b1e9afaf2 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -3,20 +3,18 @@

Transaction

- - + + - +
@@ -158,9 +156,8 @@ Descendant - - - + + {{ cpfpTx.fee / (cpfpTx.weight / 4) | feeRounding }} sat/vB @@ -171,9 +168,7 @@ Descendant - - - + {{ cpfpInfo.bestDescendant.fee / (cpfpInfo.bestDescendant.weight / 4) | feeRounding }} sat/vB @@ -184,9 +179,7 @@ Ancestor - - - + {{ cpfpTx.fee / (cpfpTx.weight / 4) | feeRounding }} sat/vB diff --git a/frontend/src/app/lightning/channel/channel-box/channel-box.component.html b/frontend/src/app/lightning/channel/channel-box/channel-box.component.html index 7f098ac71..9fe9b100b 100644 --- a/frontend/src/app/lightning/channel/channel-box/channel-box.component.html +++ b/frontend/src/app/lightning/channel/channel-box/channel-box.component.html @@ -1,11 +1,9 @@

{{ channel.alias || '?' }}

- - - - - + + +
diff --git a/frontend/src/app/lightning/channels-list/channels-list.component.html b/frontend/src/app/lightning/channels-list/channels-list.component.html index 9fc92401a..f89100666 100644 --- a/frontend/src/app/lightning/channels-list/channels-list.component.html +++ b/frontend/src/app/lightning/channels-list/channels-list.component.html @@ -46,11 +46,9 @@
{{ node.alias || '?' }}
- - - - - + + +
diff --git a/frontend/src/app/lightning/node/node.component.html b/frontend/src/app/lightning/node/node.component.html index bc3f0dc9a..4331767ef 100644 --- a/frontend/src/app/lightning/node/node.component.html +++ b/frontend/src/app/lightning/node/node.component.html @@ -3,11 +3,11 @@

{{ node.alias }}

- - + + - +
diff --git a/frontend/src/app/shared/components/truncate/truncate.component.html b/frontend/src/app/shared/components/truncate/truncate.component.html index 728f2e82a..31d1b1b88 100644 --- a/frontend/src/app/shared/components/truncate/truncate.component.html +++ b/frontend/src/app/shared/components/truncate/truncate.component.html @@ -1,9 +1,19 @@ - - {{text.slice(0,-lastChars)}}{{text.slice(-lastChars)}} + + + + - - {{text.slice(lastChars)}}{{text.slice(0,lastChars)}} + + + + + {{text.slice(0,-lastChars)}}{{text.slice(-lastChars)}} + + + + {{text.slice(lastChars)}}{{text.slice(0,lastChars)}} + \ No newline at end of file diff --git a/frontend/src/app/shared/components/truncate/truncate.component.scss b/frontend/src/app/shared/components/truncate/truncate.component.scss index 357f40762..ea69e32c3 100644 --- a/frontend/src/app/shared/components/truncate/truncate.component.scss +++ b/frontend/src/app/shared/components/truncate/truncate.component.scss @@ -4,6 +4,14 @@ flex-direction: row; align-items: baseline; + .truncate-link { + display: flex; + flex-direction: row; + align-items: baseline; + flex-shrink: 1; + overflow: hidden; + } + .first { flex-grow: 0; flex-shrink: 1; diff --git a/frontend/src/app/shared/components/truncate/truncate.component.ts b/frontend/src/app/shared/components/truncate/truncate.component.ts index da9965be3..9edc6ddb2 100644 --- a/frontend/src/app/shared/components/truncate/truncate.component.ts +++ b/frontend/src/app/shared/components/truncate/truncate.component.ts @@ -1,12 +1,14 @@ -import { Component, Input, Inject, LOCALE_ID } from '@angular/core'; +import { Component, Input, Inject, LOCALE_ID, ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'app-truncate', templateUrl: './truncate.component.html', - styleUrls: ['./truncate.component.scss'] + styleUrls: ['./truncate.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, }) export class TruncateComponent { @Input() text: string; + @Input() link: any = null; @Input() lastChars: number = 4; @Input() maxWidth: number = null; rtl: boolean;