Fix SidePane indent at minimum size

This commit is contained in:
miruka 2019-04-28 15:52:26 -04:00
parent 4433e48611
commit c4fb0c1150
3 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,6 @@
- Don't bake in size properties for components
- Bug fixes
- SidePane indent at min size
- The damn remember account dialog
- 100% CPU usage when hitting top edge to trigger messages loading
- Sending `![A picture](https://picsum.photos/256/256)` → not clickable?
@ -14,6 +13,7 @@
- UI
- Use nested listview for categories instead of section property
- Improve SidePane appearance when at min width
- Server selection
- Register/Forgot? for SignIn dialog
- Scaling

View File

@ -68,8 +68,9 @@ HColumnLayout {
parent.width - Layout.leftMargin - Layout.rightMargin
Layout.margins: accountList.spacing
Layout.leftMargin:
sidePane.width < 36 + Layout.margins ? 0 : Layout.margins
Layout.rightMargin: 0
Layout.leftMargin:
sidePane.width <= (sidePane.Layout.minimumWidth + Layout.margins) ?
0 : Layout.margins
}
}

View File

@ -6,9 +6,11 @@ ListView {
clip: true
spacing: 8
Layout.leftMargin: spacing
topMargin: spacing
bottomMargin: topMargin
Layout.leftMargin:
sidePane.width <= (sidePane.Layout.minimumWidth + spacing) ?
0 : spacing
model: Backend.models.accounts
delegate: AccountDelegate {}