Skip to content

Commit

Permalink
Reduce width so sidebar does not go offscren (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
bprize15 authored Oct 1, 2024
1 parent d37c65a commit 30df3be
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/main/webapp/app/components/sidebar/OncoKBSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const OncoKBSidebarExpanded = observer(
onMouseOut={handleMouseOut}
onMouseDown={handleMouseDown}
/>
<div style={{ marginTop: '2.25rem' }}>
<div style={{ marginTop: '2.25rem', display: 'flex', flexDirection: 'column' }}>
{oncoKBSidebarWidth !== maxWidth && (
<ActionIcon
size="lg"
Expand All @@ -175,7 +175,9 @@ const OncoKBSidebarExpanded = observer(
data-testid={CLOSE_SIDEBAR_BUTTON_ID}
/>
</div>
<div style={{ marginTop: '2rem', display: 'flex', width: '100%' }}>{children}</div>
<div className="ps-3" style={{ marginTop: '2rem', display: 'flex', width: '100%', overflowX: 'hidden' }}>
{children}
</div>
</div>
);
},
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/app/pages/curation/CurationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export const CurationPage = (props: ICurationPageProps) => {
/>
<OncoKBSidebar>
<Tabs
className="pe-4 ps-2 mt-1"
tabs={[
{
title: 'Tools',
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/app/pages/curation/GeneListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const GeneListPage = (props: IGeneListPage) => {
</Col>
</Row>
<OncoKBSidebar>
<Tabs tabs={sidebarTabs} />
<Tabs className="pe-4 ps-2 mt-1" tabs={sidebarTabs} />
</OncoKBSidebar>
</>
) : (
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30df3be

Please sign in to comment.