Skip to content

Commit 4c0353d

Browse files
committed
Remove browser scrollbars from components.
1 parent 8dc8a07 commit 4c0353d

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/components/BaseSequenceBarPlot.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class BaseSequenceBarPlot extends Component {
4444
return (
4545
<div
4646
id={div_id}
47+
className="alignmentjs-container"
4748
style={container_style}
4849
onWheel={e => this.handleWheel(e)}
4950
>

src/components/SiteAxis.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class SiteAxis extends Component {
4646
return (
4747
<div
4848
id="alignmentjs-axis-div"
49+
className="alignmentjs-container"
4950
style={{
5051
overflowY: "scroll",
5152
overflowX: "hidden",

src/styles.scss

+9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
@import "~bootstrap/scss/bootstrap.scss";
22
@import "~react-phylotree/styles/phylotree.css";
33

4+
// https://www.w3schools.com/howto/howto_css_hide_scrollbars.asp
5+
/* Hide scrollbar for IE, Edge and Firefox */
46
div.alignmentjs-container {
57
float: left;
68
padding: 0;
79
margin: 0;
10+
-ms-overflow-style: none; /* IE and Edge */
11+
scrollbar-width: none; /* Firefox */
12+
}
13+
14+
/* Hide scrollbar for Chrome, Safari and Opera */
15+
div.alignmentjs-container::-webkit-scrollbar {
16+
display: none;
817
}
918

1019
svg#alignmentjs-labels > text {

0 commit comments

Comments
 (0)