Compare commits

..

3 Commits

Author SHA1 Message Date
jjaeger fbfb09a545 Add correct word-break setting for button group 2023-08-29 14:31:06 +02:00
jjaeger 3d81f26a6f Allow text in buttons to wrap 2023-08-29 14:26:08 +02:00
jjaeger f21b36ca6e Remove unneeded import 2023-08-26 14:47:29 +02:00
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = function (RED) {
var heightPx = config.buttonheight * sizes.sy - sizes.gy; var heightPx = config.buttonheight * sizes.sy - sizes.gy;
var html = `<div style="width=100%; height=100%"> var html = `<div style="width=100%; height=100%">
<md-button id="{{$index}}" style="width:${widthPx}px; height:${heightPx}px; margin: ${sizes.gx}px ${sizes.gy}px; background-color: {{button.color}};" ng-click="buttonClick($event)" ng-repeat="button in msg.buttons">{{button.label}}</md-button> <md-button id="{{$index}}" style="width:${widthPx}px; height:${heightPx}px; margin: ${sizes.gx}px ${sizes.gy}px; background-color: {{button.color}}; white-space: pre-wrap; word-break: break-word;" ng-click="buttonClick($event)" ng-repeat="button in msg.buttons">{{button.label}}</md-button>
</div>`; </div>`;
var done = ui.addWidget({ var done = ui.addWidget({
-1
View File
@@ -1,4 +1,3 @@
const { create } = require('domain');
var path = require('path'); var path = require('path');
module.exports = function (RED) { module.exports = function (RED) {