From 4c74b64463e72017f4b2703ea0a5ccac7837f73b Mon Sep 17 00:00:00 2001 From: Ian Scott Date: Mon, 2 Dec 2024 10:00:18 -0500 Subject: [PATCH] fix(deposit-form): Deposit form updates to support new detail-page collection ui; fixed top nav item z-index --- assets/less/site/collections/form.overrides | 3 +++ assets/less/site/collections/menu.overrides | 1 + assets/less/site/elements/image.overrides | 6 ++++++ site/kcworks/assets/semantic-ui/js/main_ui/main_menu.js | 2 -- site/kcworks/dependencies/invenio-modular-deposit-form | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/less/site/collections/form.overrides b/assets/less/site/collections/form.overrides index d0de5216..b8e04141 100644 --- a/assets/less/site/collections/form.overrides +++ b/assets/less/site/collections/form.overrides @@ -500,8 +500,11 @@ textarea { margin-top: 0; } .community-header-logo { + width: 2.5rem; + height: 2.5rem; max-width: 2.5rem; max-height: 2.5rem; + object-fit: cover; } } } diff --git a/assets/less/site/collections/menu.overrides b/assets/less/site/collections/menu.overrides index 4375bf2d..e2139aa2 100644 --- a/assets/less/site/collections/menu.overrides +++ b/assets/less/site/collections/menu.overrides @@ -141,6 +141,7 @@ &:focus, &:active { background-color: @mint60 !important; + z-index: 100; } } a, diff --git a/assets/less/site/elements/image.overrides b/assets/less/site/elements/image.overrides index a3aca331..79f0c859 100644 --- a/assets/less/site/elements/image.overrides +++ b/assets/less/site/elements/image.overrides @@ -12,6 +12,9 @@ img { object-fit: cover; min-height: 80px; + min-width: 80px; + max-height: 80px; + max-width: 80px; border-radius: @defaultBorderRadius; box-shadow: 0 0 0.5rem rgb(0 0 0 / 5%); border: 1px solid @sidebarBorderColor; @@ -20,6 +23,9 @@ &.mini { img { min-height: 45px; + min-width: 45px; + max-height: 45px; + max-width: 45px; } } } diff --git a/site/kcworks/assets/semantic-ui/js/main_ui/main_menu.js b/site/kcworks/assets/semantic-ui/js/main_ui/main_menu.js index 7522ebb8..c84fdd6a 100644 --- a/site/kcworks/assets/semantic-ui/js/main_ui/main_menu.js +++ b/site/kcworks/assets/semantic-ui/js/main_ui/main_menu.js @@ -155,7 +155,6 @@ const UserMenu = ({ return ( <> -
-

{i18next.t("My account")}

diff --git a/site/kcworks/dependencies/invenio-modular-deposit-form b/site/kcworks/dependencies/invenio-modular-deposit-form index 006ea47f..f2171e1f 160000 --- a/site/kcworks/dependencies/invenio-modular-deposit-form +++ b/site/kcworks/dependencies/invenio-modular-deposit-form @@ -1 +1 @@ -Subproject commit 006ea47f104ef0cb9d8ff68ecd15fef3ebd254cb +Subproject commit f2171e1f7d9400aec88c449f5dd600fa9fd5e0ad