diff --git a/src/app/organization/offices/view-office/general-tab/general-tab.component.html b/src/app/organization/offices/view-office/general-tab/general-tab.component.html index d1e186b639..2dec268cee 100644 --- a/src/app/organization/offices/view-office/general-tab/general-tab.component.html +++ b/src/app/organization/offices/view-office/general-tab/general-tab.component.html @@ -1,27 +1,22 @@ -
-
- - - -
- -
+
+
{{ 'labels.inputs.Parent Office' | translate }}
{{ officeData.parentName ? officeData.parentName : 'N/A' }}
+
{{ 'labels.inputs.Opened On' | translate }}
{{ officeData.openingDate ? (officeData.openingDate | dateFormat) : 'Unassigned' }}
+
{{ 'labels.inputs.Name Decorated' | translate }}
{{ officeData.nameDecorated ? officeData.nameDecorated : 'Unassigned' }}
+
{{ 'labels.inputs.External Id' | translate }}
@@ -31,4 +26,12 @@ {{ 'labels.inputs.Unassigned' | translate }}
+ +
+ + + +
diff --git a/src/app/organization/offices/view-office/general-tab/general-tab.component.scss b/src/app/organization/offices/view-office/general-tab/general-tab.component.scss index 07ecfe7a0b..ca8d266bfd 100644 --- a/src/app/organization/offices/view-office/general-tab/general-tab.component.scss +++ b/src/app/organization/offices/view-office/general-tab/general-tab.component.scss @@ -1,6 +1,8 @@ .tab-container { - padding: 1%; - margin: 1%; + padding: 0.5rem; + margin: 1% auto; + max-width: 600px; + width: 90%; .delete-button { margin-left: 1%; @@ -14,3 +16,97 @@ .table-data { margin-top: 3px; } + +.compact-button { + padding: 0.25rem 0.75rem; + font-size: 0.9rem; + line-height: 1.75; +} + +.compact-details { + font-size: 0.9rem; + + .left, + .right { + padding: 0.25rem 0; + } + + .mat-body-strong { + font-size: 0.9rem; + } +} + +.m-b-10 { + margin-bottom: 10px; +} + +.m-r-5 { + margin-right: 5px; +} + +.bottom-button-container { + display: flex; + justify-content: center; + margin-top: 2rem; + padding: 1rem 0; +} + +.edit-button { + min-width: 120px; + padding: 0.5rem 1.5rem; + font-size: 1rem; + border-radius: 4px; + box-shadow: 0 3px 5px rgb(0 0 0 / 20%); + transition: all 0.3s ease; + + &:hover { + box-shadow: 0 4px 8px rgb(0 0 0 / 30%); + transform: translateY(-2px); + } +} + +.layout-row-wrap { + margin: 0 auto; + padding: 0.5rem; +} + +.section-divider { + width: 100%; + border: 0; + border-top: 1px solid rgb(0 0 0 / 10%); + margin: 8px 0; +} + +.compact-view { + padding: 0.3rem; + margin: 0 auto; + max-width: 450px; + width: 90%; +} + +.condensed { + .flex-45, + .flex-50 { + padding: 0.2rem 0; + font-size: 0.85rem; + } + + .section-divider { + margin: 4px 0; + } +} + +.small-buttons { + margin-top: 1rem; + + .edit-button { + min-width: 100px; + padding: 0.35rem 1rem; + font-size: 0.9rem; + } +} + +.tab-container.compact-view { + max-width: 450px; + width: 90%; +} diff --git a/src/app/organization/offices/view-office/view-office.component.html b/src/app/organization/offices/view-office/view-office.component.html index 2ef0594582..45594bf8d8 100644 --- a/src/app/organization/offices/view-office/view-office.component.html +++ b/src/app/organization/offices/view-office/view-office.component.html @@ -1,6 +1,6 @@ -
+
- + - + diff --git a/src/app/organization/offices/view-office/view-office.component.scss b/src/app/organization/offices/view-office/view-office.component.scss index 3b3b46bdda..64a74543b3 100644 --- a/src/app/organization/offices/view-office/view-office.component.scss +++ b/src/app/organization/offices/view-office/view-office.component.scss @@ -1,13 +1,74 @@ .action-button { - width: 95%; + width: 85%; + margin: 0.2rem auto; + padding: 0.3rem; + border-radius: 3px; + transition: all 0.3s ease; + + &:hover { + transform: translateY(-2px); + box-shadow: 0 4px 8px rgb(0 0 0 / 10%); + } } .office-card { - margin: 0 auto; - width: 90%; - padding: 0; + width: 100%; + margin: 0.75rem auto; + padding: 0.5rem; + border-radius: 8px !important; + box-shadow: 0 2px 8px rgb(0 0 0 / 10%) !important; .navigation-tabs { overflow: auto; + padding: 0.2rem 0; + scrollbar-width: thin; + + &::-webkit-scrollbar { + height: 4px; + } + + &::-webkit-scrollbar-thumb { + background-color: rgb(0 0 0 / 20%); + border-radius: 4px; + } + + .mat-tab-label { + min-width: 80px; + padding: 0 0.5rem; + height: 36px; + font-size: 0.85rem; + } } + + @media (width <= 768px) { + width: 85%; + padding: 0.4rem; + } +} + +.container { + padding: 0.5rem; +} + +.narrow-container { + max-width: 600px; + margin: 0 auto; + padding: 0.75rem; +} + +.extra-small { + max-width: 500px; +} + +.compact-tab { + min-width: auto; + padding: 0 12px; +} + +.card-content { + padding: 0.5rem; +} + +.tab-panel { + padding: 0.5rem 0; }