Fix SidePane indent at minimum size
This commit is contained in:
parent
4433e48611
commit
c4fb0c1150
2
TODO.md
2
TODO.md
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user