Skip to content
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

Merged
merged 5 commits into from
Aug 31, 2018

Conversation

ConradJChan
Copy link
Contributor

Made the navigation buttons skinner, in particular the next file navigation button, in order to allow room for the preview content scrollbar to be clickable

@boxcla
Copy link

boxcla commented Aug 28, 2018

Verified that @ConradJChan has signed the CLA. Thanks for the pull request!

@jstoffan
Copy link
Collaborator

@ConradJChan, can you attach before and after screenshots so we can see the change?

@@ -39,6 +39,11 @@ $navigationBtnWidth: 50px;
box-shadow: none;
outline: none;
}

& > svg {
margin-left: -5px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this due to spacing built into the SVG?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link
Contributor

@jeremypress jeremypress left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get a screenshot of the fix?

@@ -52,9 +57,10 @@ $navigationBtnWidth: 50px;
.bp-navigate-left {
border-radius: 0 2px 2px 0;
left: 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this?

@@ -1,4 +1,4 @@
$navigationBtnWidth: 50px;
$navigationBtnWidth: 40px;
Copy link
Contributor

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?

Copy link
Contributor Author

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)

@ConradJChan
Copy link
Contributor Author

Before:
before

After:
after

@ConradJChan
Copy link
Contributor Author

In addressing @DanDeMicco's comment, I'm keeping the button the same size now. I've also increased the offset to 20px because across the different browsers the scroll bar width is 17px, so just rounding up to 20 to be safe

Now looks like this:
after 20px offset

Thoughts?

@@ -39,6 +39,10 @@ $navigationBtnWidth: 50px;
box-shadow: none;
outline: none;
}

& > svg {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope it is not, will remove

@ConradJChan ConradJChan merged commit 55b4d8e into box:master Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants