mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
widgets: make buttons fill the full widget dimensions
This commit is contained in:
parent
6e6c5b89a3
commit
eb2cc000c0
2 changed files with 6 additions and 4 deletions
|
@ -58,7 +58,7 @@ class WidgetButton extends Component {
|
|||
render() {
|
||||
return (
|
||||
<div className="button-widget full">
|
||||
<Button active={ this.state.pressed } disabled={ this.props.editing } onMouseDown={ (e) => this.onPress(e) } onMouseUp={ (e) => this.onRelease(e) }>{this.props.widget.name}</Button>
|
||||
<Button className="full" active={ this.state.pressed } disabled={ this.props.editing } onMouseDown={ (e) => this.onPress(e) } onMouseUp={ (e) => this.onRelease(e) }>{this.props.widget.name}</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -60,9 +60,11 @@ class WidgetCustomAction extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const btnStyle = { width: '100%', height: '100%' };
|
||||
|
||||
return <Button disabled={this.state.simulator === null} style={btnStyle} onClick={(e) => this.onClick()}><Icon icon={this.props.widget.icon} /> <span dangerouslySetInnerHTML={{ __html: this.props.widget.name }} /></Button>;
|
||||
return <div className="widget-custom-action full">
|
||||
<Button className="full" disabled={this.state.simulator === null} onClick={(e) => this.onClick()}>
|
||||
<Icon icon={this.props.widget.icon} /> <span dangerouslySetInnerHTML={{ __html: this.props.widget.name }} />
|
||||
</Button>
|
||||
</div>;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue