Skip to content

Commit 99eacf6

Browse files
author
Shawn Toubeau
committed
adds close btn to sidebar
1 parent f68d0b7 commit 99eacf6

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/components/Menu/Menu.scss

+10
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,13 @@
4747
display: none !important;
4848
}
4949
}
50+
51+
.side-bar-close-btn {
52+
width: 37px;
53+
height: 37px;
54+
margin: 5px 5px 5px auto !important;
55+
}
56+
57+
.side-bar-content {
58+
margin-top: 0 !important;
59+
}

src/components/Menu/index.tsx

+11-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,17 @@ class MenuBar extends React.Component<Props, State> {
444444
visible={sidebarOpen}
445445
width="very wide"
446446
>
447-
<Segment textAlign="left" padded="very">
447+
<Button
448+
className="side-bar-close-btn"
449+
circular
450+
icon="close"
451+
onClick={() => this.setState({ sidebarOpen: false })}
452+
/>
453+
<Segment
454+
className="side-bar-content"
455+
textAlign="left"
456+
padded="very"
457+
>
448458
<ReactMarkdown source={this.getInfo()} text-color="white" />
449459
</Segment>
450460
</Sidebar>

0 commit comments

Comments
 (0)