Skip to content

Commit

Permalink
Remove browser scrollbars from components.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenshank committed Oct 8, 2021
1 parent 8dc8a07 commit 4c0353d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/BaseSequenceBarPlot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class BaseSequenceBarPlot extends Component {
return (
<div
id={div_id}
className="alignmentjs-container"
style={container_style}
onWheel={e => this.handleWheel(e)}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/SiteAxis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class SiteAxis extends Component {
return (
<div
id="alignmentjs-axis-div"
className="alignmentjs-container"
style={{
overflowY: "scroll",
overflowX: "hidden",
Expand Down
9 changes: 9 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
@import "~bootstrap/scss/bootstrap.scss";
@import "~react-phylotree/styles/phylotree.css";

// https://www.w3schools.com/howto/howto_css_hide_scrollbars.asp
/* Hide scrollbar for IE, Edge and Firefox */
div.alignmentjs-container {
float: left;
padding: 0;
margin: 0;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
div.alignmentjs-container::-webkit-scrollbar {
display: none;
}

svg#alignmentjs-labels > text {
Expand Down

0 comments on commit 4c0353d

Please sign in to comment.