From 368ed00fecfbfbaba8eecf99e7709c8f942e3f4b Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Fri, 3 Apr 2026 13:20:21 +0300 Subject: [PATCH] Update item detail dialog info section to match design exactly - Installed badge: pill shape, rgba(25,128,56,0.06) bg, 12px Regular, #198038 - Open details link: 12px Medium, open_in_new icon 16px, $tb-primary-color - Status row: flex justify-between (badge left, link right) - Author: 12px Medium with 16px person icon - Info section: gap-32 between text-container and action buttons - Action buttons: justify-between (Update left, Remove right) - Solution templates: separate links row for instructions + dashboard - Proper dlg-info-text wrapper with gap-16 for content elements --- .../iot-hub-item-detail-dialog.component.html | 103 ++++++++++-------- .../iot-hub-item-detail-dialog.component.scss | 88 +++++++++------ 2 files changed, 110 insertions(+), 81 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-detail-dialog.component.html b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-detail-dialog.component.html index 511f0d9855..3497c5b79a 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-detail-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-detail-dialog.component.html @@ -55,26 +55,28 @@ @if (item.type === ItemType.CALCULATED_FIELD || item.type === ItemType.RULE_CHAIN || item.type === ItemType.DEVICE) {
- @if (isInstalled()) { -
- - check - {{ 'iot-hub.installed' | translate }} v{{ installedItem.version }} - - - open_in_new - {{ 'iot-hub.open-item-type-details' | translate:{ type: getTypeLabel() } }} - -
- } - @if (item.description) { -
- +
+ @if (isInstalled()) { +
+ + check + {{ 'iot-hub.installed' | translate }} v{{ installedItem.version }} + + + open_in_new + {{ 'iot-hub.open-item-type-details' | translate:{ type: getTypeLabel() } }} + +
+ } + @if (item.description) { +
+ +
+ } +
+ person + {{ item.creatorDisplayName }}
- } -
- person - {{ item.creatorDisplayName }}
@if (!isInstalled()) { @@ -87,7 +89,6 @@ } @if (isInstalled()) { -
- - @if (isInstalled()) { -
- - check - {{ 'iot-hub.installed' | translate }} v{{ installedItem.version }} - - @if (isSameVersion() && item.type === ItemType.SOLUTION_TEMPLATE) { - - info_outline - {{ 'iot-hub.solution-instructions' | translate }} - - } - - open_in_new +
+ + @if (isInstalled()) { + - } - @if (item.description) { -
- +
+ } + @if (item.description) { +
+ +
+ } +
+ person + {{ item.creatorDisplayName }}
- } -
- person - {{ item.creatorDisplayName }}
@@ -188,7 +196,6 @@ } @if (isInstalled()) { -