mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fit text in boxes.
5-min fix.
This commit is contained in:
parent
368c0310a5
commit
7cf2ebe441
1 changed files with 3 additions and 2 deletions
|
@ -208,8 +208,8 @@ Item
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width - (2 * UM.Theme.getSize("default_margin").width)
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.Wrap
|
||||||
text: base.getMachineName()
|
text: base.getMachineName()
|
||||||
color: UM.Theme.getColor("primary_button")
|
color: UM.Theme.getColor("primary_button")
|
||||||
font: UM.Theme.getFont("huge")
|
font: UM.Theme.getFont("huge")
|
||||||
|
@ -273,6 +273,7 @@ Item
|
||||||
id: printerNameTextField
|
id: printerNameTextField
|
||||||
placeholderText: catalog.i18nc("@text", "Please name your printer")
|
placeholderText: catalog.i18nc("@text", "Please name your printer")
|
||||||
maximumLength: 40
|
maximumLength: 40
|
||||||
|
width: parent.width - (printerNameLabel.width + (3 * UM.Theme.getSize("default_margin").width))
|
||||||
validator: RegExpValidator
|
validator: RegExpValidator
|
||||||
{
|
{
|
||||||
regExp: printerNameTextField.machineNameValidator.machineNameRegex
|
regExp: printerNameTextField.machineNameValidator.machineNameRegex
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue