Fix filter field overflowing at some sizes/zooms

This commit is contained in:
miruka 2019-12-15 14:56:40 -04:00
parent a9507bdbeb
commit 52956954e5
3 changed files with 14 additions and 7 deletions

14
TODO.md
View File

@ -45,20 +45,22 @@
- Room Sidepane save/load size & keybinds - Room Sidepane save/load size & keybinds
## Bug fixes ## Issues
- invisible image - invisible uploaded mxc images?
- first undecryptable message - first undecryptable message
- two upload delegates height bug
- Leave box button focus
- Pause upload, switch to other room, then come back, wrong state displayed
- Adding an account with no rooms - Adding an account with no rooms
- Join button 502 - Join button 502
- Retry the initial profile retrieval if it fails (due to e.g. dead server) - Retry the initial profile retrieval if it fails (due to e.g. dead server)
- Leave box button focus
- two upload delegates height bug
- Messed up message delegates position - Messed up message delegates position
- Pausing uploads doesn't work well, servers end up dropping the connection
- Quickly posting with another account leads to sync stop - Quickly posting with another account leads to sync stop
- Pausing uploads doesn't work well, servers end up dropping the connection
- Pause upload, switch to other room, then come back, wrong state displayed
- `code` not colored in room subtitle - `code` not colored in room subtitle
- In the "Leave me" room, "join > Hi > left" aren't combined - In the "Leave me" room, "join > Hi > left" aren't combined
- Event delegates changing height don't scroll the list - Event delegates changing height don't scroll the list

View File

@ -53,7 +53,7 @@ HColumnLayout {
placeholderText: qsTr("Filter members") placeholderText: qsTr("Filter members")
backgroundColor: theme.chat.roomPane.filterMembers.background backgroundColor: theme.chat.roomPane.filterMembers.background
bordered: false bordered: false
opacity: width >= 16 ? 1 : 0 opacity: width >= 16 * theme.uiScale ? 1 : 0
onTextChanged: filterLimiter.restart() onTextChanged: filterLimiter.restart()

View File

@ -4,6 +4,8 @@ import "../Base"
HRowLayout { HRowLayout {
id: toolBar id: toolBar
// Hide filter field overflowing for a sec on size changes
clip: true
property AccountRoomList mainPaneList property AccountRoomList mainPaneList
readonly property alias addAccountButton: addAccountButton readonly property alias addAccountButton: addAccountButton
@ -27,6 +29,7 @@ HRowLayout {
placeholderText: qsTr("Filter rooms") placeholderText: qsTr("Filter rooms")
backgroundColor: theme.mainPane.filterRooms.background backgroundColor: theme.mainPane.filterRooms.background
bordered: false bordered: false
opacity: width >= 16 * theme.uiScale ? 1 : 0
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
@ -49,5 +52,7 @@ HRowLayout {
if (window.settings.clearRoomFilterOnEscape) text = "" if (window.settings.clearRoomFilterOnEscape) text = ""
mainUI.pageLoader.forceActiveFocus() mainUI.pageLoader.forceActiveFocus()
} }
Behavior on opacity { HOpacityAnimator {} }
} }
} }