From 89a6be28d5b6cec45169adc356dd15705c2ea109 Mon Sep 17 00:00:00 2001 From: shubhamsharma9199 Date: Mon, 24 Nov 2025 13:52:43 +0530 Subject: [PATCH] refactor(templates): align view template page with consistent UI pattern Replaced deprecated word-wrap with modern overflow-wrap: break-word --- .../view-template.component.html | 28 +++++------- .../view-template.component.scss | 44 ++++++++++++++++--- 2 files changed, 51 insertions(+), 21 deletions(-) diff --git a/src/app/templates/view-template/view-template.component.html b/src/app/templates/view-template/view-template.component.html index efb077ee2c..9806e77458 100644 --- a/src/app/templates/view-template/view-template.component.html +++ b/src/app/templates/view-template/view-template.component.html @@ -1,23 +1,22 @@ -
- - - -
-
+
+ + + +
+
{{ 'labels.inputs.name' | translate }}
-
{{ templateData.name }}
@@ -25,7 +24,6 @@
{{ 'labels.inputs.Entity' | translate }}
-
{{ templateData.entity }}
@@ -33,7 +31,6 @@
{{ 'labels.inputs.Type' | translate }}
-
{{ templateData.type }}
@@ -41,7 +38,6 @@
{{ 'labels.inputs.Text' | translate }}
-
diff --git a/src/app/templates/view-template/view-template.component.scss b/src/app/templates/view-template/view-template.component.scss index 46cf447600..1970b9aa22 100644 --- a/src/app/templates/view-template/view-template.component.scss +++ b/src/app/templates/view-template/view-template.component.scss @@ -1,10 +1,44 @@ +// Component-specific styles - minimal overrides to global styles +// Follows existing patterns from general-tab components + .container { - max-width: 37rem; + max-width: 32rem; + margin: 0 auto; + width: 85%; +} + +mat-card { + mat-card-content { + padding: 1.5rem; + + .layout-row-wrap { + display: grid; + grid-template-columns: 50% 50%; + + @media (width <= 768px) { + grid-template-columns: 100%; + } + } + + .flex-50 { + padding: 0.625rem 0; + display: flex; + align-items: center; + font-size: 0.875rem; + overflow-wrap: break-word; + line-height: 1.6; + + &.mat-body-strong { + font-weight: 600; + } + + &:not(:last-child, :nth-last-child(2)) { + border-bottom: 1px solid #ddd; + } + } - .content { - div { - margin: 1rem 0; - word-wrap: break-word; + @media (width <= 480px) { + padding: 1rem; } } }