Updated: Improved vehicle and refuel data handling on dashboard
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build and Deploy Zola Website / build_and_deploy (push) Successful in 14s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build and Deploy Zola Website / build_and_deploy (push) Successful in 14s
				
			Updated: - DashboardController now fetches latest refuel record only for the default vehicle - VehicleController - first created vehicle is now set as default automatically - Refuel model - latest_one() now accepts vehicle_id instead of user_id - Dashboard view - improved handling when no vehicles or refuel records exist - CSS styles - adjusted dashboard layout and global action padding
This commit is contained in:
		@@ -9,7 +9,6 @@
 | 
			
		||||
  flex-wrap: wrap;
 | 
			
		||||
  gap: 1rem;
 | 
			
		||||
  justify-content: center;
 | 
			
		||||
  margin-top: 2rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.card {
 | 
			
		||||
 
 | 
			
		||||
@@ -52,3 +52,8 @@ h1 {
 | 
			
		||||
	background-color: var(--clr-warning-muted);
 | 
			
		||||
	border: var(--borderWidth-thin) solid var(--clr-border-danger);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#actions {
 | 
			
		||||
	padding-top: 1rem;
 | 
			
		||||
	padding-bottom: 2rem;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user