Skip to content

Commit

Permalink
Fix user status selector text input sizing
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 25, 2022
1 parent fc484dc commit 98194f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/UserStatusSelector.qml
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,20 @@ ColumnLayout {

TextField {
id: userStatusMessageTextField

property color borderColor: activeFocus ? Style.ncBlue : Style.menuBorder

Layout.fillWidth: true
Layout.preferredHeight: implicitHeight + (Style.smallSpacing * 2)

placeholderText: qsTr("What is your status?")
placeholderTextColor: Style.ncSecondaryTextColor
text: userStatusSelectorModel.userStatusMessage
color: Style.ncTextColor
verticalAlignment: TextInput.AlignVCenter
selectByMouse: true
onEditingFinished: userStatusSelectorModel.userStatusMessage = text

property color borderColor: activeFocus ? Style.ncBlue : Style.menuBorder

background: Rectangle {
radius: Style.slightlyRoundedButtonRadius
color: Style.backgroundColor
Expand Down

0 comments on commit 98194f7

Please sign in to comment.