Browse Source

Fit text in boxes.

5-min fix.
Remco Burema 4 years ago
parent
commit
7cf2ebe441
1 changed files with 3 additions and 2 deletions
  1. 3 2
      resources/qml/WelcomePages/AddLocalPrinterScrollView.qml

+ 3 - 2
resources/qml/WelcomePages/AddLocalPrinterScrollView.qml

@@ -208,8 +208,8 @@ Item
 
             Label
             {
-                width: parent.width
-                wrapMode: Text.WordWrap
+                width: parent.width - (2 * UM.Theme.getSize("default_margin").width)
+                wrapMode: Text.Wrap
                 text: base.getMachineName()
                 color: UM.Theme.getColor("primary_button")
                 font: UM.Theme.getFont("huge")
@@ -273,6 +273,7 @@ Item
                     id: printerNameTextField
                     placeholderText: catalog.i18nc("@text", "Please name your printer")
                     maximumLength: 40
+                    width: parent.width - (printerNameLabel.width + (3 * UM.Theme.getSize("default_margin").width))
                     validator: RegExpValidator
                     {
                         regExp: printerNameTextField.machineNameValidator.machineNameRegex