1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Add word-wrap to label

This commit is contained in:
Markus Grigull 2017-07-30 00:11:11 +02:00
parent a022a13bcb
commit 69c835cecb
2 changed files with 9 additions and 9 deletions

View file

@ -190,8 +190,8 @@ class Widget extends Component {
<Rnd
ref={c => { this.rnd = c; }}
initial={{ x: Number(widget.x), y: Number(widget.y), width: widget.width, height: widget.height }}
minWidth={ widget.minWidth }
minHeight={ widget.minHeight }
minWidth={widget.minWidth}
minHeight={widget.minHeight}
lockAspectRatio={Boolean(widget.lockAspect)}
bounds={'parent'}
className={ widgetClasses }

View file

@ -20,13 +20,17 @@
******************************************************************************/
.widget {
overflow: auto;
}
.border {
border: 1px solid lightgray;
}
.editing-widget {
}
.editing-widget:hover {
background-color: #fff;
}
@ -450,18 +454,14 @@ div[class*="-widget"] label {
/* Begin label widget */
.label-widget {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
padding: 0;
}
.label-widget h4 {
padding: 0;
margin: 0;
word-wrap: break-word;
}
/* End label widget */