Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
adds a drag region to the mist sidebar (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Van de Sande authored Jun 15, 2016
1 parent 3117c4d commit c654097
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion interface/client/styles/layout.import.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ body, html {
margin: 0;
overflow: hidden;
background: @colorWinBackgroundFocus;
-webkit-app-region: drag;

&.app-blur {
background: @colorWinBackgroundBlur;
Expand Down Expand Up @@ -92,6 +93,11 @@ aside {
bottom: 0;
// padding-top: @gridHeight/2;
width: @widthSideBar;
-webkit-app-region: drag;

nav {
-webkit-app-region: no-drag;
}

&:before {
content: " ";
Expand Down Expand Up @@ -167,5 +173,6 @@ webview {
bottom: 0;
overflow: hidden;
margin-top: @gridHeight*2;
border-top: solid 1px rgba(0, 0, 0, 0.1)
border-top: solid 1px rgba(0, 0, 0, 0.1);
-webkit-app-region: no-drag;
}
2 changes: 1 addition & 1 deletion interface/client/templates/elements/img.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Template['elements_img'].onRendered(function(){

Template['elements_img'].helpers({
/**
This helper will preload the image, and then incject it later after its loaded
This helper will preload the image, and then inject it later after its loaded
@method (preload)
*/
Expand Down
6 changes: 3 additions & 3 deletions interface/client/templates/popupWindows/splashScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ Template['popupWindows_splashScreen'].onCreated(function(){
// Select the appropriate message
if(web3.net.peerCount > 0) {
// Check which state we are
if (lastSyncData.knownStates > lastSyncData.lastKnownStates
|| (lastSyncData.pulledStates / lastSyncData.knownStates) < 0.9 ) {

if ( lastSyncData.pulledStates != Math.round(lastSyncData._displayState)
|| lastSyncData.knownStates != Math.round(lastSyncData._displayKnownStates)) {
// Mostly downloading new states
translationString = 'mist.startScreen.nodeSyncInfoStates';

Expand All @@ -116,7 +117,6 @@ Template['popupWindows_splashScreen'].onCreated(function(){

// Saves data as numbers (hex)
lastSyncData._highestBlock = lastSyncData.highestBlock;
lastSyncData.lastKnownStates = lastSyncData.knownStates;

// saves data as pretty strings
lastSyncData.highestBlock = numeral(lastSyncData.highestBlock).format('0,0');
Expand Down

0 comments on commit c654097

Please # to comment.