-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: navigation buttons shouldn't cover scrollbar #838
Changes from 1 commit
1bedcc3
de9445a
39f2ec6
5102ddd
14f3110
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
$navigationBtnWidth: 50px; | ||
$navigationBtnWidth: 40px; | ||
|
||
.bp-is-fullscreen .bp-navigate { | ||
display: none; | ||
|
@@ -39,6 +39,11 @@ $navigationBtnWidth: 50px; | |
box-shadow: none; | ||
outline: none; | ||
} | ||
|
||
& > svg { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this still necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nope it is not, will remove |
||
margin-left: -5px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this due to spacing built into the SVG? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is to center the SVG within the now 40px button, stand by for screenshots |
||
width: 50px; | ||
} | ||
} | ||
|
||
.bp-is-navigation-visible .bp-navigate { | ||
|
@@ -52,9 +57,10 @@ $navigationBtnWidth: 50px; | |
.bp-navigate-left { | ||
border-radius: 0 2px 2px 0; | ||
left: 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this? |
||
left: 10px; | ||
} | ||
|
||
.bp-navigate-right { | ||
border-radius: 2px 0 0 2px; | ||
right: 0; | ||
right: 10px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why reduce the button width? What if you left everything the same, but changed the left and right of .bp-navigate-left and .bp-navigate-right, would that work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you're right I could keep the button width the same, I guess I was just trying to keep the button about in the same place as it ever was (though what is 5px vs 10px really)