Better default SidePane size
This commit is contained in:
parent
87c72e32db
commit
e64b233427
|
@ -2,7 +2,7 @@ import QtQuick 2.7
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtQuick.Layouts 1.4
|
import QtQuick.Layouts 1.4
|
||||||
import "base" as Base
|
import "base" as Base
|
||||||
import "sidePane" as SidePane
|
import "SidePane" as SidePane
|
||||||
import "chat" as Chat
|
import "chat" as Chat
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -20,9 +20,10 @@ Item {
|
||||||
Base.HSplitView {
|
Base.HSplitView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
SidePane.Root {
|
SidePane.SidePane {
|
||||||
Layout.minimumWidth: 36
|
Layout.minimumWidth: 36
|
||||||
width: 200
|
width: Math.min(parent.width * 0.33, 300)
|
||||||
|
Layout.maximumWidth: parent.width
|
||||||
visible: accountsLoggedIn
|
visible: accountsLoggedIn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user