From 3698d45edbb48b08f6eb9ecf18f18978de8db659 Mon Sep 17 00:00:00 2001 From: Nazar Semets Date: Wed, 17 Sep 2025 23:58:55 +0300 Subject: [PATCH] fix(bugs): fixed bugs --- .../core/components/root/root.component.html | 31 ++++++-------- .../core/components/root/root.component.scss | 40 +++++++++++++++++++ .../admin-institutions.component.html | 6 +-- .../admin-table/admin-table.component.html | 4 +- .../admin-table/admin-table.component.scss | 4 -- .../institutions-summary.component.html | 2 +- .../institutions-summary.component.scss | 6 +++ .../models/get-contributors-response.model.ts | 14 ------- .../get-resource-short-info-response.model.ts | 3 +- .../models/get-short-info-response.model.ts | 3 +- src/app/features/files/models/index.ts | 1 - .../file-detail/file-detail.component.ts | 14 +++---- src/app/features/files/store/index.ts | 1 + .../institutions/institutions.component.scss | 2 + .../institutions-search.component.html | 2 +- .../resource-tooltip-info.component.html | 8 +++- .../features/metadata/metadata.component.html | 1 + .../features/metadata/metadata.component.scss | 5 +++ .../features/metadata/metadata.component.ts | 2 +- .../my-preprint-reviewing.component.html | 2 +- .../my-preprint-reviewing.component.scss | 5 +++ .../connect-configured-addon.component.ts | 2 +- .../addons/models/addon-config-map.type.ts | 3 ++ .../features/project/addons/models/index.ts | 1 + .../addons/utils/addon-config-map.type.ts | 3 -- .../features/project/addons/utils/index.ts | 1 - .../create-view-link-dialog.component.html | 6 +-- .../contributors/contributors.component.html | 2 +- .../contributors/contributors.component.scss | 14 ++++--- ...ttings-access-requests-card.component.html | 4 +- .../settings-wiki-card.component.html | 4 +- .../settings/mappers/settings.mapper.ts | 1 - .../models/project-settings-response.model.ts | 1 - .../project/settings/settings.component.ts | 1 - .../new-registration.component.html | 6 +-- .../new-registration.component.ts | 2 +- .../files-tree/files-tree.component.ts | 12 ++---- src/assets/i18n/en.json | 4 +- 38 files changed, 127 insertions(+), 96 deletions(-) delete mode 100644 src/app/features/files/models/get-contributors-response.model.ts create mode 100644 src/app/features/project/addons/models/addon-config-map.type.ts delete mode 100644 src/app/features/project/addons/utils/addon-config-map.type.ts delete mode 100644 src/app/features/project/addons/utils/index.ts diff --git a/src/app/core/components/root/root.component.html b/src/app/core/components/root/root.component.html index cfcc6394a..bf50403cf 100644 --- a/src/app/core/components/root/root.component.html +++ b/src/app/core/components/root/root.component.html @@ -1,31 +1,24 @@ -@if (isWeb()) { -
+
+ @if (isWeb()) { + } -
- - - - +
+ - -
-
-} @else { -
-
- + @if (isWeb()) { + + } @else { - @if (isMedium()) { } + } - + - -
+
-} +
diff --git a/src/app/core/components/root/root.component.scss b/src/app/core/components/root/root.component.scss index a79b10a3b..75e7a3a05 100644 --- a/src/app/core/components/root/root.component.scss +++ b/src/app/core/components/root/root.component.scss @@ -44,3 +44,43 @@ } } } + +.layout { + display: flex; + flex: 1; + max-width: 100vw; + + .content-wrapper { + display: flex; + flex-direction: column; + flex: 1; + overflow-y: auto; + background-color: var(--bg-blue-3); + } +} + +.layout.layout-desktop { + background-color: var(--dark-blue-1); + + .content-wrapper { + position: relative; + border-radius: mix.rem(12px); + margin: mix.rem(6px); + } +} + +.layout.layout-tablet { + @include mix.flex-center; + + .content-wrapper { + @include mix.flex-column; + width: 100%; + height: 100%; + + .content { + position: relative; + @include mix.flex-column; + flex: 1; + } + } +} diff --git a/src/app/features/admin-institutions/admin-institutions.component.html b/src/app/features/admin-institutions/admin-institutions.component.html index bbdd54d54..2e86a3b56 100644 --- a/src/app/features/admin-institutions/admin-institutions.component.html +++ b/src/app/features/admin-institutions/admin-institutions.component.html @@ -1,4 +1,4 @@ -
+
@if (isInstitutionLoading()) {
@@ -28,7 +28,7 @@

{{ institution().name }}

/>
-