Skip to content

Commit

Permalink
EPMRPP-93205 || Wrong behaviour when clicking on All organizations bu… (
Browse files Browse the repository at this point in the history
#3939)

* EPMRPP-93205 || Wrong behaviour when clicking on All organizations button in the sidebar

* EPMRPP-93205 || Code Review fix - 1

* EPMRPP-93205 || Code Review fix - 2
  • Loading branch information
BlazarQSO authored Jul 31, 2024
1 parent ed09c37 commit 05c27a1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export const InstanceSidebar = ({ onClickNavBtn }) => {
}}
link={link}
titles={titles}
isExtendedNav
/>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const OrganizationSidebar = ({ onClickNavBtn }) => {
}}
link={link}
titles={titles}
isExtendedNav
/>
);

Expand Down
18 changes: 12 additions & 6 deletions app/src/layouts/organizationsControl/organizationsControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,21 @@ export const OrganizationsControl = ({
<div>
<div
className={cx('organization-btn-wrapper', {
'instance-level': isExtendedNav,
'not-extended': !isExtendedNav,
})}
>
{!isExtendedNav ? <i className={cx('arrow-icon')}>{Parser(ArrowLeftIcon)}</i> : null}
<Link to={link} className={cx('organization-btn')} onClick={closeSidebar}>
<div className={cx('top-title')}>{titles.topTitle}</div>
</Link>
{isExtendedNav ? (
<>
<i className={cx('arrow-icon')}>{Parser(ArrowLeftIcon)}</i>
<Link to={link} className={cx('organization-btn')} onClick={closeSidebar}>
<div className={cx('top-title')}>{titles.topTitle}</div>
</Link>
</>
) : (
<div className={cx('extended-top-title')}>{titles.topTitle}</div>
)}
</div>
{!isExtendedNav ? <div className={cx('bottom-title')}>{titles.bottomTitle}</div> : null}
{isExtendedNav ? <div className={cx('bottom-title')}>{titles.bottomTitle}</div> : null}
</div>
<i
className={cx('open-popover', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@
text-align: start;
}

.extended-top-title {
color: $COLOR--darkmode-gray-100;
line-height: 20px;
font-size: 13px;
font-family: $FONT-ROBOTO-MEDIUM;
}

.bottom-title {
@include truncate(220px);
color: $COLOR--darkmode-gray-100;
Expand Down Expand Up @@ -169,7 +176,7 @@
}
}

.instance-level {
.not-extended {
height: 20px;

.top-title {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export const ProjectSidebar = ({ onClickNavBtn }) => {
}}
link={link}
titles={titles}
isExtendedNav
/>
);

Expand Down

0 comments on commit 05c27a1

Please sign in to comment.