From 9b627c153524488d30eb36dbd8778c2b3e6992e5 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Wed, 22 Jul 2020 13:53:48 +0200 Subject: [PATCH] Minor change of tooltip text for widget collapse buttons #235 --- src/widget/widget-toolbox.js | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/widget/widget-toolbox.js b/src/widget/widget-toolbox.js index a4e25e8..9e6838b 100644 --- a/src/widget/widget-toolbox.js +++ b/src/widget/widget-toolbox.js @@ -48,10 +48,10 @@ class WidgetToolbox extends React.Component { disableDecrease(){ const maxHeight = Object.values(this.props.widgets).reduce((currentHeight, widget) => { const absolutHeight = widget.y + widget.height; - + return absolutHeight > currentHeight ? absolutHeight : currentHeight; }, 0); - + if(this.props.dashboard.height <= 400 || this.props.dashboard.height <= maxHeight + 80){ return true; } @@ -97,7 +97,7 @@ class WidgetToolbox extends React.Component { // Only one topology widget at the time is supported const iconStyle = { color: '#007bff', - height: '25px', + height: '25px', width : '25px' } @@ -110,8 +110,8 @@ class WidgetToolbox extends React.Component { - Drag and drop widgets onto the dashboard } > - @@ -125,48 +125,48 @@ class WidgetToolbox extends React.Component { - Drag and drop widgets onto the dashboard } > - - + - Drag and drop widgets onto the dashboard } > - - +
Grid: { this.props.grid > 1 ? this.props.grid : 'Disabled' } - +
- +
- Cosmetic Widgets } > + Show/ hide available Cosmetic Widgets } > - Displaying Widgets } > + Show/ hide available Displaying Widgets } > - Manipulation Widgets } > + Show/ hide available Manipulation Widgets } > Decrease dashboard height } >