Refactor layout of left and right panes to use rounded borders and improve structure
This commit is contained in:
		
							parent
							
								
									d684583cb9
								
							
						
					
					
						commit
						407e37fffd
					
				
					 1 changed files with 12 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -29,14 +29,16 @@ class HostsManagerApp(App):
 | 
			
		|||
    
 | 
			
		||||
    .left-pane {
 | 
			
		||||
        width: 60%;
 | 
			
		||||
        border: solid $primary;
 | 
			
		||||
        border: round $primary;
 | 
			
		||||
        margin: 1;
 | 
			
		||||
        padding: 1;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    .right-pane {
 | 
			
		||||
        width: 40%;
 | 
			
		||||
        border: solid $primary;
 | 
			
		||||
        border: round $primary;
 | 
			
		||||
        margin: 1;
 | 
			
		||||
        padding: 1;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    .entry-active {
 | 
			
		||||
| 
						 | 
				
			
			@ -79,13 +81,17 @@ class HostsManagerApp(App):
 | 
			
		|||
        yield Header()
 | 
			
		||||
        
 | 
			
		||||
        with Horizontal(classes="hosts-container"):
 | 
			
		||||
            with Vertical(classes="left-pane"):
 | 
			
		||||
                yield Static("Hosts Entries", id="left-header")
 | 
			
		||||
            left_pane = Vertical(classes="left-pane")
 | 
			
		||||
            left_pane.border_title = "Hosts Entries"
 | 
			
		||||
            with left_pane:
 | 
			
		||||
                yield ListView(id="entries-list")
 | 
			
		||||
            yield left_pane
 | 
			
		||||
            
 | 
			
		||||
            with Vertical(classes="right-pane"):
 | 
			
		||||
                yield Static("Entry Details", id="right-header")
 | 
			
		||||
            right_pane = Vertical(classes="right-pane")
 | 
			
		||||
            right_pane.border_title = "Entry Details"
 | 
			
		||||
            with right_pane:
 | 
			
		||||
                yield Static("", id="entry-details")
 | 
			
		||||
            yield right_pane
 | 
			
		||||
        
 | 
			
		||||
        yield Static("", classes="status-bar", id="status")
 | 
			
		||||
        yield Footer()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue