mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Navbar fixes (#25402)
Fixes: https://github.com/go-gitea/gitea/issues/25444 Followup for some regressions from https://github.com/go-gitea/gitea/pull/25343. Before and after: <img width="219" alt="Screenshot 2023-06-21 at 00 25 20" src="https://github.com/go-gitea/gitea/assets/115237/08fe8e01-0a16-4cdf-ad4d-0a9048408e9e"> <img width="220" alt="Screenshot 2023-06-21 at 00 25 32" src="https://github.com/go-gitea/gitea/assets/115237/be25ae69-6ed0-4af5-8eeb-d7b210e7c124"> Fixes mobile button background and margins: <img width="836" alt="Screenshot 2023-06-21 at 00 39 58" src="https://github.com/go-gitea/gitea/assets/115237/d76ac1e9-747f-477c-9a42-b73e129b72ee">
This commit is contained in:
		@@ -34,6 +34,10 @@
 | 
			
		||||
  justify-content: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#navbar .dropdown .item {
 | 
			
		||||
  justify-content: stretch;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#navbar a.item:hover,
 | 
			
		||||
#navbar button.item:hover {
 | 
			
		||||
  background: var(--color-nav-hover-bg);
 | 
			
		||||
@@ -85,19 +89,19 @@
 | 
			
		||||
  #navbar.navbar-menu-open .item {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
  }
 | 
			
		||||
  #navbar.navbar-menu-open .navbar-left #navbar-logo {
 | 
			
		||||
    justify-content: flex-start;
 | 
			
		||||
    width: 50%;
 | 
			
		||||
    min-height: 48px;
 | 
			
		||||
    width: auto;
 | 
			
		||||
  }
 | 
			
		||||
  #navbar.navbar-menu-open .navbar-left .navbar-mobile-right {
 | 
			
		||||
    justify-content: flex-end;
 | 
			
		||||
    width: 50%;
 | 
			
		||||
    min-height: 48px;
 | 
			
		||||
  }
 | 
			
		||||
  #navbar.navbar-menu-open .mobile-right-item {
 | 
			
		||||
    width: auto !important;
 | 
			
		||||
  #navbar #mobile-notifications-icon {
 | 
			
		||||
    margin-right: 6px !important;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user