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 @@
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;
|