Fix SidePane indent at minimum size
This commit is contained in:
		
							
								
								
									
										2
									
								
								TODO.md
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								TODO.md
									
									
									
									
									
								
							@@ -3,7 +3,6 @@
 | 
				
			|||||||
  - Don't bake in size properties for components
 | 
					  - Don't bake in size properties for components
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Bug fixes
 | 
					- Bug fixes
 | 
				
			||||||
  - SidePane indent at min size
 | 
					 | 
				
			||||||
  - The damn remember account dialog
 | 
					  - The damn remember account dialog
 | 
				
			||||||
  - 100% CPU usage when hitting top edge to trigger messages loading
 | 
					  - 100% CPU usage when hitting top edge to trigger messages loading
 | 
				
			||||||
  - Sending `` → not clickable?
 | 
					  - Sending `` → not clickable?
 | 
				
			||||||
@@ -14,6 +13,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- UI
 | 
					- UI
 | 
				
			||||||
  - Use nested listview for categories instead of section property
 | 
					  - Use nested listview for categories instead of section property
 | 
				
			||||||
 | 
					  - Improve SidePane appearance when at min width
 | 
				
			||||||
  - Server selection
 | 
					  - Server selection
 | 
				
			||||||
  - Register/Forgot? for SignIn dialog
 | 
					  - Register/Forgot? for SignIn dialog
 | 
				
			||||||
  - Scaling
 | 
					  - Scaling
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,8 +68,9 @@ HColumnLayout {
 | 
				
			|||||||
            parent.width - Layout.leftMargin - Layout.rightMargin
 | 
					            parent.width - Layout.leftMargin - Layout.rightMargin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Layout.margins: accountList.spacing
 | 
					        Layout.margins: accountList.spacing
 | 
				
			||||||
        Layout.leftMargin:
 | 
					 | 
				
			||||||
            sidePane.width < 36 + Layout.margins ? 0 : Layout.margins
 | 
					 | 
				
			||||||
        Layout.rightMargin: 0
 | 
					        Layout.rightMargin: 0
 | 
				
			||||||
 | 
					        Layout.leftMargin:
 | 
				
			||||||
 | 
					            sidePane.width <= (sidePane.Layout.minimumWidth + Layout.margins) ?
 | 
				
			||||||
 | 
					            0 : Layout.margins
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,9 +6,11 @@ ListView {
 | 
				
			|||||||
    clip: true
 | 
					    clip: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    spacing: 8
 | 
					    spacing: 8
 | 
				
			||||||
    Layout.leftMargin: spacing
 | 
					 | 
				
			||||||
    topMargin: spacing
 | 
					    topMargin: spacing
 | 
				
			||||||
    bottomMargin: topMargin
 | 
					    bottomMargin: topMargin
 | 
				
			||||||
 | 
					    Layout.leftMargin:
 | 
				
			||||||
 | 
					        sidePane.width <= (sidePane.Layout.minimumWidth + spacing) ?
 | 
				
			||||||
 | 
					        0 : spacing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    model: Backend.models.accounts
 | 
					    model: Backend.models.accounts
 | 
				
			||||||
    delegate: AccountDelegate {}
 | 
					    delegate: AccountDelegate {}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user