From 876e5bc6839f31dfc29d8ad2011cd9c2b5ca0237 Mon Sep 17 00:00:00 2001 From: Alex Inkin Date: Sat, 20 Sep 2025 20:10:58 +0700 Subject: [PATCH] fix: fix overflowing interface table (#3027) --- .../interfaces/addresses/item.component.ts | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/item.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/item.component.ts index ccd363eaa..4231acd71 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/item.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/addresses/item.component.ts @@ -24,8 +24,8 @@ import { TuiBadge } from '@taiga-ui/kit' {{ 'Address details' | i18n }} - {{ address.type }} - + {{ address.type }} + @if (address.access === 'public') { {{ 'public' | i18n }} @@ -38,20 +38,41 @@ import { TuiBadge } from '@taiga-ui/kit' - } - - {{ address.gatewayName || '-' }} + +
+ {{ address.gatewayName || '-' }} +
+ + +
{{ address.url }}
- {{ address.url }} } `, styles: ` + :host { + white-space: nowrap; + + td:last-child { + padding-inline-start: 0; + } + } + + div { + white-space: normal; + word-break: break-all; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; + overflow: hidden; + } + :host-context(tui-root._mobile) { td { width: auto !important;