diff --git a/README.md b/README.md index 433ebdc1..94e9cf02 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ It can also be a self invoking function that returns an array of objects : left:'auto', // [integer] absolute position in px height:'auto', // [integer] absolute position in px width:'auto', // [integer] width in px + stretch:false, // [bool] set to true to stretch widgets width (don't put horizontal strips in it) widgets: [] // [array] of widget objects ``` diff --git a/app/browser/scss/style.scss b/app/browser/scss/style.scss index 4285f4d5..65932770 100644 --- a/app/browser/scss/style.scss +++ b/app/browser/scss/style.scss @@ -717,6 +717,13 @@ form { > .widget { border:0; } + &.stretch { + display:flex; + justify-content: space-between; + > .widget { + width:100%; + } + } } } diff --git a/app/main/config.json b/app/main/config.json deleted file mode 100644 index 0967ef42..00000000 --- a/app/main/config.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/app/main/main.js b/app/main/main.js index 291a2644..532dc3da 100644 --- a/app/main/main.js +++ b/app/main/main.js @@ -35,7 +35,7 @@ var app = require('app') sessionFile: argv.l || false, - persistent: require( __dirname + '/config.json'), + persistent: function(){var c = {};try {c=require( __dirname + '/config.json')} finally {return c}}(), read:function(key){ var x = this.persistent[key] || this[key]