diff --git a/src/app/_modules/form-fields/types/document/form-field-document.component.scss b/src/app/_modules/form-fields/types/document/form-field-document.component.scss index 48eab06..f7b512e 100644 --- a/src/app/_modules/form-fields/types/document/form-field-document.component.scss +++ b/src/app/_modules/form-fields/types/document/form-field-document.component.scss @@ -55,8 +55,9 @@ .values { .item { - background: transparent url('~src/assets/images/icons/document/document_pdf_60dp.svg') 0 0 no-repeat; - min-height: 60px; + background: transparent url('~src/assets/images/icons/document/document_60dp.svg') 0 0 no-repeat; + background-size: contain; + height: 60px; padding-left: 72px; font-size: 20px; display: flex; diff --git a/src/app/_modules/form-fields/types/document/single/field-document-single.component.html b/src/app/_modules/form-fields/types/document/single/field-document-single.component.html index 6e082f1..5e67bf0 100644 --- a/src/app/_modules/form-fields/types/document/single/field-document-single.component.html +++ b/src/app/_modules/form-fields/types/document/single/field-document-single.component.html @@ -10,8 +10,8 @@
-
+ -
+
\ No newline at end of file diff --git a/src/app/_modules/form-fields/types/document/single/field-document-single.component.ts b/src/app/_modules/form-fields/types/document/single/field-document-single.component.ts index b9b48bd..13b3460 100644 --- a/src/app/_modules/form-fields/types/document/single/field-document-single.component.ts +++ b/src/app/_modules/form-fields/types/document/single/field-document-single.component.ts @@ -52,6 +52,9 @@ export class FieldDocumentSingleComponent { this.asset = asset; this.control?.setValue(asset?.id); } + get extension(){ + return `url(/assets/images/icons/document/${ICON_TYPE[this.asset.extension]}.svg)` + } @@ -87,3 +90,17 @@ export class FieldDocumentSingleComponent { }); } } + +const ICON_TYPE:any={ + rtf:'DOC', + docx:'DOC', + doc:'DOC', + xl:'XLS', + xls:'XLS', + xlsx:'XLS', + ppt:'PPT', + pptx:'PPT', + jpg:'JPG', + jpeg:'JPG', + pdf:'PDF' +} diff --git a/src/app/_modules/layout/header/header.component.html b/src/app/_modules/layout/header/header.component.html index 686199b..0f420ec 100644 --- a/src/app/_modules/layout/header/header.component.html +++ b/src/app/_modules/layout/header/header.component.html @@ -3,18 +3,15 @@ - - - +
АИС СЦ ВНИИГАЗ
- АИС СЦ ВНИИГАЗ + + АИС СЦ ВНИИГАЗ
diff --git a/src/app/_modules/layout/header/header.component.scss b/src/app/_modules/layout/header/header.component.scss index abd3ef4..35134d1 100644 --- a/src/app/_modules/layout/header/header.component.scss +++ b/src/app/_modules/layout/header/header.component.scss @@ -1,11 +1,11 @@ @media screen and (max-width: 1264px){ .hidemobile{ - display: none; + display: none !important; } .header{ flex-grow: 1; - padding: 12px 24px; + padding: 0px 24px; background-color: #FFF; min-height: 100%; @@ -22,19 +22,14 @@ background: url('~src/assets/images/icons/burger_blue_40dp.svg') no-repeat center;; } } - .logo{ - width: 114px; + .logo { + display: inline-flex; + width:114px; height: 80px; - background: url('~src/assets/images/logo_vniigaz_1163x816.svg') no-repeat center;; + margin: 12px 24px 12px 40px; + background-image: url('~src/assets/images/logo_vniigaz_1163x816.svg'); background-size: contain; - header-user-bar{ - position: absolute; - top:144px; - right: 24px; - *{ - display: none; - } - } + flex-shrink: 0; } .fog{ flex-grow: 1; @@ -91,7 +86,7 @@ } .right{ - display: none; + } } @@ -144,9 +139,6 @@ background-image: url('~src/assets/images/logo_vniigaz_1163x816.svg'); background-size: contain; flex-shrink: 0; - header-user-bar{ - display: none; - } } .grid-menu{ display: flex; @@ -183,9 +175,11 @@ } } } - header-user-bar{ - position: absolute; - right: 0; - bottom: -96px; - } + +} + +header-user-bar{ + position: absolute; + right: 0; + bottom: -96px; } diff --git a/src/app/_modules/layout/header/header.component.ts b/src/app/_modules/layout/header/header.component.ts index a85d630..5d30059 100644 --- a/src/app/_modules/layout/header/header.component.ts +++ b/src/app/_modules/layout/header/header.component.ts @@ -71,6 +71,7 @@ export class HeaderComponent { } itemSelect(event:any){ - if(!event.children?.data.length) this.showBottom = false; + // if(!event.children?.data.length) + this.showBottom = false; } } diff --git a/src/app/_modules/layout/header/user-bar/header-user-bar.component.html b/src/app/_modules/layout/header/user-bar/header-user-bar.component.html index 1be297f..0ace074 100644 --- a/src/app/_modules/layout/header/user-bar/header-user-bar.component.html +++ b/src/app/_modules/layout/header/user-bar/header-user-bar.component.html @@ -1,10 +1,10 @@ -
+
{{user.initials}}
-