Skip to content

Commit

Permalink
Merge pull request #5214 from nextcloud/bugfix/user-status-selector-t…
Browse files Browse the repository at this point in the history
…ext-input-sizing

Explicitly size and align user status selector text input to avoid bugs with alternate QtQuick styles
  • Loading branch information
claucambra authored Dec 8, 2022
2 parents 948cd1e + cc159e0 commit 9f7592f
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 @@ -206,16 +206,20 @@ ColumnLayout {

TextField {
id: userStatusMessageTextField

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

Layout.fillWidth: true
Layout.preferredHeight: contentHeight + (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 9f7592f

Please sign in to comment.