min-height/size are just set to auto if widget size is specified

This commit is contained in:
jean-emmanuel 2016-02-26 17:19:33 +01:00
parent d840e4abc0
commit 61794e0757
3 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -112,8 +112,8 @@ module.exports.widgets = function(data,parent) {
top = parseFloat(widgetData.top)==widgetData.top?parseFloat(widgetData.top)+'rem' : widgetData.top
var styleW = widgetData.width&&widgetData.width!='auto'?`width:${width};amin-width:${width};`:'',
styleH = widgetData.height&&widgetData.height!='auto'?`height:${height};amin-height:${height};`:'',
var styleW = widgetData.width&&widgetData.width!='auto'?`width:${width};min-width:auto;`:'',
styleH = widgetData.height&&widgetData.height!='auto'?`height:${height};min-height:auto;`:'',
styleL = widgetData.left&&widgetData.left!='auto'||widgetData.left==0?`left:${left};`:'',
styleT = widgetData.top&&widgetData.top!='auto'||widgetData.top==0?`top:${top};`:''

View file

@ -149,6 +149,9 @@ body {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
&:hover {
box-shadow: 0 0 0 1rem $color-border, 0 0 0 100rem rgba($color-text,.05) inset;
}
&.small {
padding:5rem;
padding-right: 15rem;
@ -311,6 +314,7 @@ body {
top:0rem;
padding:5rem;
color:$color-text-fade;
cursor: pointer;
}
> div {
box-shadow: 0 0 0 1rem $color-border;