fix: fix channel list disappearing with only one channel
This commit is contained in:
parent
5ec3ad88d5
commit
7da6bd9834
|
@ -6,14 +6,13 @@ import "../../../../imports"
|
||||||
import "../components"
|
import "../components"
|
||||||
import "./"
|
import "./"
|
||||||
|
|
||||||
Rectangle {
|
Item {
|
||||||
property var channelModel
|
property var channelModel
|
||||||
property alias channelListCount: chatGroupsListView.count
|
property alias channelListCount: chatGroupsListView.count
|
||||||
property string searchStr: ""
|
property string searchStr: ""
|
||||||
id: channelListContent
|
id: channelListContent
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
color: Style.current.transparent
|
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: timer
|
id: timer
|
||||||
|
@ -24,7 +23,7 @@ Rectangle {
|
||||||
spacing: appSettings.compactMode ? 4 : Style.current.halfPadding
|
spacing: appSettings.compactMode ? 4 : Style.current.halfPadding
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
visible: height > 50
|
visible: height > (appSettings.compactMode ? 30 : 50)
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
interactive: false
|
interactive: false
|
||||||
|
|
Loading…
Reference in New Issue