From c26c7d34e667b9a54b5dac916ad272b04bf14494 Mon Sep 17 00:00:00 2001 From: ayeshoali Date: Tue, 6 Dec 2022 18:54:27 +0500 Subject: [PATCH] fix: discussions navigation tab is not sticking to top --- src/discussions/common/ActionsDropdown.jsx | 58 +++++++++++----------- src/index.scss | 12 ++++- 2 files changed, 40 insertions(+), 30 deletions(-) diff --git a/src/discussions/common/ActionsDropdown.jsx b/src/discussions/common/ActionsDropdown.jsx index 09310b0a..28bfb743 100644 --- a/src/discussions/common/ActionsDropdown.jsx +++ b/src/discussions/common/ActionsDropdown.jsx @@ -52,37 +52,39 @@ function ActionsDropdown({ size="sm" ref={setTarget} /> - -
+ - {actions.map(action => ( - - {(action.action === ContentActions.DELETE) +
+ {actions.map(action => ( + + {(action.action === ContentActions.DELETE) && } - { - close(); - handleActions(action.action); - }} - className="d-flex justify-content-start py-1.5 mr-4" - > - {intl.formatMessage(action.label)} - - - ))} -
-
+ { + close(); + handleActions(action.action); + }} + className="d-flex justify-content-start py-1.5 mr-4" + > + {intl.formatMessage(action.label)} + + + ))} +
+
+ ); } diff --git a/src/index.scss b/src/index.scss index b35a84d3..2714d666 100755 --- a/src/index.scss +++ b/src/index.scss @@ -118,7 +118,7 @@ $fa-font-path: "~font-awesome/fonts"; header { .user-dropdown { - z-index: 2005; + z-index: 1; } .logo { margin-right: 1rem; @@ -227,7 +227,7 @@ header { .header-action-bar { background-color: #fff; - z-index: 2002; + z-index: 1; box-shadow: 0px 2px 4px rgb(0 0 0 / 15%), 0px 2px 8px rgb(0 0 0 / 15%); position: sticky; top: 0; @@ -237,6 +237,10 @@ header { z-index: 1; } +.actions-dropdown { + z-index: 0; +} + .discussion-topic-group:last-of-type .divider{ display: none; } @@ -249,6 +253,10 @@ header { z-index: 5000 !important; } +#iconbutton-tooltip-top { + z-index: 0; +} + @media only screen and (max-width: 767px) { body:not(.tox-force-desktop) .tox .tox-dialog { align-self: center;