Skip to content

Commit

Permalink
Merge pull request RocketChat#426 from RocketChat/bugfix/drag-region-…
Browse files Browse the repository at this point in the history
…scroll

Reduce drag region to fix manual scroll
  • Loading branch information
engelgabriel authored Apr 26, 2017
2 parents 2e51982 + 3def120 commit e69678e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 0 additions & 2 deletions src/public/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ <h2>Enter your server URL</h2>
</footer>
</div>
</section>
<div class="drag-region left-nav"></div>
<div class="drag-region right-nav"></div>
<div class="drag-region top-bar"></div>

<script src="../app.js"></script>
Expand Down
22 changes: 1 addition & 21 deletions src/stylesheets/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -310,34 +310,14 @@ input[type='password'] {
.landing-page {
left: 0;
}

.drag-region.left-nav {
left: 0;
}
}

.drag-region {
position: absolute;
-webkit-app-region: drag;

&.left-nav {
@media(max-width: 860px) {
width: 20px;
}

width: 260px;
height: 100%;
left: 80px;
}

&.right-nav {
width: 40px;
height: 100%;
right: 0;
}

&.top-bar {
height: 20px;
height: 22px;
width: 100%;
}
}

0 comments on commit e69678e

Please sign in to comment.