Tweak dimensions, fix ResponsiveGrid
This commit is contained in:
parent
4a04a55513
commit
f8bc0df74a
1 changed files with 14 additions and 10 deletions
|
@ -59,14 +59,16 @@ AccordionItem {
|
||||||
|
|
||||||
ResponsiveGrid {
|
ResponsiveGrid {
|
||||||
bottomPadding: Theme.paddingMedium
|
bottomPadding: Theme.paddingMedium
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: userInformationLoader
|
id: userInformationLoader
|
||||||
active: tdLibWrapper.authorizationState === TelegramAPI.AuthorizationReady
|
active: tdLibWrapper.authorizationState === TelegramAPI.AuthorizationReady
|
||||||
width: parent.width
|
width: parent.columnWidth
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
Column {
|
Column {
|
||||||
spacing: Theme.paddingSmall
|
anchors.topMargin: Theme.paddingMedium
|
||||||
|
spacing: Theme.paddingMedium
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
x: Theme.horizontalPageMargin
|
x: Theme.horizontalPageMargin
|
||||||
|
@ -121,11 +123,6 @@ AccordionItem {
|
||||||
onClicked: logOutItem.showRemorseItem()
|
onClicked: logOutItem.showRemorseItem()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Separator {
|
|
||||||
width: parent.width
|
|
||||||
color: Theme.primaryColor
|
|
||||||
horizontalAlignment: Qt.AlignHCenter
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -133,16 +130,23 @@ AccordionItem {
|
||||||
Loader {
|
Loader {
|
||||||
id: sessionInformationLoader
|
id: sessionInformationLoader
|
||||||
active: tdLibWrapper.authorizationState === TelegramAPI.AuthorizationReady
|
active: tdLibWrapper.authorizationState === TelegramAPI.AuthorizationReady
|
||||||
width: parent.width
|
width: parent.columnWidth
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
SilicaListView {
|
SilicaListView {
|
||||||
id: activeSessionsListView
|
id: activeSessionsListView
|
||||||
width: parent.width
|
width: parent.width
|
||||||
// TODO/FIXME: do a proper height calculation here:
|
// one activeSessionListItem is about 1.52 times itemSizeLarge
|
||||||
height: Theme.itemSizeLarge * 5
|
// show max 5 items at a time
|
||||||
|
height: Theme.itemSizeLarge * 1.5 * Math.min(5 , activeSessionsItem.activeSessions.length )
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
model: activeSessionsItem.activeSessions
|
model: activeSessionsItem.activeSessions
|
||||||
|
headerPositioning: ListView.OverlayHeader
|
||||||
|
header: Separator {
|
||||||
|
width: parent.width
|
||||||
|
color: Theme.primaryColor
|
||||||
|
horizontalAlignment: Qt.AlignHCenter
|
||||||
|
}
|
||||||
delegate: ListItem {
|
delegate: ListItem {
|
||||||
id: activeSessionListItem
|
id: activeSessionListItem
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
Loading…
Reference in a new issue