From e845a45e76cd69856aa2db9cbd32cbe1e8564c7d Mon Sep 17 00:00:00 2001 From: Shubham Kumar Date: Thu, 18 Sep 2025 08:11:51 +0530 Subject: [PATCH] Enhance profile layout: Single-row box layout for user details (#2664) --- src/app/profile/profile.component.html | 76 +++++++++++++++----------- src/app/profile/profile.component.scss | 64 +++++++++++++++++----- 2 files changed, 94 insertions(+), 46 deletions(-) diff --git a/src/app/profile/profile.component.html b/src/app/profile/profile.component.html index f9a5ffced..f4ce664cc 100644 --- a/src/app/profile/profile.component.html +++ b/src/app/profile/profile.component.html @@ -1,9 +1,9 @@
- - @@ -11,41 +11,53 @@
-
- {{ 'labels.inputs.Tenant Id' | translate }} +
+
+ {{ 'labels.inputs.Tenant Id' | translate }} +
+
+ {{ tenantIdentifier }} +
-
- {{ tenantIdentifier }} +
+
+ {{ 'labels.inputs.User Id' | translate }} +
+
+ {{ profileData.userId }} +
-
- {{ 'labels.inputs.User Id' | translate }} +
+
+ {{ 'labels.inputs.User Name' | translate }} +
+
+ {{ profileData.username }} +
-
- {{ profileData.userId }} +
+
+ {{ 'labels.inputs.Office' | translate }} +
+
+ {{ profileData.officeName }} +
-
- {{ 'labels.inputs.User Name' | translate }} +
+
+ {{ 'labels.inputs.Status' | translate }} +
+
+ {{ profileData.authenticated ? 'Authenticated' : 'Not Authenticated' }} +
-
- {{ profileData.username }} -
-
- {{ 'labels.inputs.Office' | translate }} -
-
- {{ profileData.officeName }} -
-
- {{ 'labels.inputs.Status' | translate }} -
-
- {{ profileData.authenticated ? 'Authenticated' : 'Not Authenticated' }} -
-
- {{ 'labels.inputs.Language' | translate }} -
-
- {{ language }} +
+
+ {{ 'labels.inputs.Language' | translate }} +
+
+ {{ language }} +
diff --git a/src/app/profile/profile.component.scss b/src/app/profile/profile.component.scss index eb6fcff20..288bc1161 100644 --- a/src/app/profile/profile.component.scss +++ b/src/app/profile/profile.component.scss @@ -1,14 +1,33 @@ .container { max-width: 37rem; - padding: 0.5rem; + padding: 1rem; mat-card { margin-bottom: 1rem; - padding: 1rem; + padding: 1.5rem; box-shadow: 0 2px 4px rgb(0 0 0 / 10%); + border: 1px solid #ddd; + border-radius: 6px; .layout-row-wrap { - padding: 0.5rem 0; + display: grid; + grid-template-columns: 50% 50%; + gap: 1rem; + + .info-box { + display: flex; + flex-direction: column; + padding: 0.75rem; + border: 1px solid #ddd; + border-radius: 6px; + background-color: #fff; + + .header { + font-weight: 600; + margin-bottom: 0.5rem; + font-size: 1.1rem; + } + } } } @@ -18,8 +37,9 @@ word-wrap: break-word; &.header { - font-weight: 500; + font-weight: 600; margin-bottom: 0.5rem; + font-size: 1.1rem; } } } @@ -27,20 +47,36 @@ table { width: 100%; margin-top: 1rem; + border-collapse: collapse; + + th { + font-weight: 600; + text-align: left; + } + + td { + padding: 0.75rem; + border: 1px solid #ddd; + } + + tr:hover { + background-color: #f9f9f9; + } } } +.container table th, +.container table td { + border-top: 1px solid rgb(0 0 0 / 12%); +} + +th.mat-header-cell:not(:first-of-type), +td.mat-cell:not(:first-of-type) { + border-left: 1px solid rgb(0 0 0 / 12%); +} + .mat-elevation-z1 { margin: 0.5rem 0; box-shadow: 0 1px 3px rgb(0 0 0 / 12%); - - th, - td { - border-top: 1px solid rgb(0 0 0 / 12%); - } - - th.mat-header-cell:not(:first-of-type), - td.mat-cell:not(:first-of-type) { - border-left: 1px solid rgb(0 0 0 / 12%); - } + border-radius: 6px; }