Skip to content

Commit

Permalink
Chore: update css
Browse files Browse the repository at this point in the history
  • Loading branch information
Conrad Chan committed Mar 6, 2019
1 parent cd22645 commit 3bd5b2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/lib/VirtualScroller.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.bp-vs {
flex: 1 0 auto;
overflow-y: auto;
overflow-x: hidden;

.bp-vs-list {
margin: 0;
Expand Down
1 change: 1 addition & 0 deletions src/lib/viewers/doc/DocBaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,7 @@ class DocBaseViewer extends BaseViewer {
this.emitMetric({ name: metricName, data: pagesCount });
this.emit(eventName);

// Resize after the CSS animation to toggle the sidebar is complete
setTimeout(() => this.resize(), THUMBNAILS_SIDEBAR_TRANSITION_TIME);
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/viewers/doc/_docBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ $thumbnail-border-radius: 4px;
border-right: solid 1px $seesee;
bottom: 0;
display: flex;
flex: 0 0 auto; // Accounts for the 1px border on the right so the remaining width is actually 180
flex: 0 0 auto;
left: -201px;
position: absolute;
top: 0;
transition: left 300ms cubic-bezier(.4, 0, .2, 1);
width: 201px;
width: 201px; // Accounts for the 1px border on the right so the remaining width is actually 180
}

&.bp-thumbnails-open .bp-thumbnails-container {
Expand Down

0 comments on commit 3bd5b2e

Please sign in to comment.