diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/gateways.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/gateways.component.ts index 99e02914f..00b4631c1 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/gateways.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/gateways.component.ts @@ -32,6 +32,15 @@ import { InterfaceGateway } from './interface.service' } } `, + styles: ` + :host { + grid-column: span 2; + + &:has(+ section table) header { + background: transparent; + } + } + `, host: { class: 'g-card' }, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/interface.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/interface.component.ts index 7236c19c5..feb13ab7d 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/interface.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/interface.component.ts @@ -12,14 +12,14 @@ import { InterfaceAddressesComponent } from './addresses/addresses.component' @Component({ selector: 'service-interface', template: ` -
+
+
-

@@ -33,7 +33,10 @@ import { InterfaceAddressesComponent } from './addresses/addresses.component' font: var(--tui-font-text-l); div { + display: grid; + grid-template-columns: repeat(6, 1fr); gap: inherit; + flex-direction: column; } ::ng-deep [tuiSkeleton] { @@ -43,8 +46,8 @@ import { InterfaceAddressesComponent } from './addresses/addresses.component' } } - :host-context(tui-root._mobile) section { - grid-column: span 1; + :host-context(tui-root._mobile) div { + display: flex; } `, changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/private-domains.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/private-domains.component.ts index 66d816f42..c602c298e 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/private-domains.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/private-domains.component.ts @@ -80,7 +80,7 @@ import { InterfaceComponent } from './interface.component' `, styles: ` :host { - grid-column: span 2; + grid-column: span 3; } `, host: { class: 'g-card' }, diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/public-domains/pd.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/public-domains/pd.component.ts index a02eda247..9fcac1ab7 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/public-domains/pd.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/public-domains/pd.component.ts @@ -37,19 +37,15 @@ import { PublicDomain, PublicDomainService } from './pd.service' } - - @for (domain of publicDomains(); track $index) { - - } @empty { - @if (publicDomains()) { - - - - } @else { + @if (publicDomains()?.length === 0) { + + {{ 'No public domains' | i18n }} + + } @else { +
- - {{ 'No public domains' | i18n }} - -
+ @for (domain of publicDomains(); track $index) { + + } @empty { @for (_ of [0]; track $index) { } } - } -
@@ -58,12 +54,12 @@ import { PublicDomain, PublicDomainService } from './pd.service'
+ + } `, styles: ` :host { - grid-column: span 3; + grid-column: span 4; } `, host: { class: 'g-card' }, diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/tor-domains.component.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/tor-domains.component.ts index 24d42281a..58ab0f30a 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/tor-domains.component.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/tor-domains.component.ts @@ -82,7 +82,7 @@ type OnionForm = { `, styles: ` :host { - grid-column: span 2; + grid-column: span 3; } `, host: { class: 'g-card' },