Fix issue filters on mobile view (#25368)
Fix #24846 applying the solution proposed by @silverwind <details> <summary>Screenshots</summary>       </details> Replaces #25335
This commit is contained in:
		
					parent
					
						
							
								749802c922
							
						
					
				
			
			
				commit
				
					
						7f38cf71fe
					
				
			
		
					 2 changed files with 10 additions and 7 deletions
				
			
		|  | @ -89,7 +89,7 @@ | |||
| 				{{template "repo/issue/openclose" .}} | ||||
| 			</div> | ||||
| 			<div class="issue-list-toolbar-right"> | ||||
| 				<div class="ui secondary filter stackable menu labels"> | ||||
| 				<div class="ui secondary filter menu labels"> | ||||
| 					<!-- Label --> | ||||
| 					<div class="ui {{if not .Labels}}disabled{{end}} dropdown jump item label-filter"> | ||||
| 						<span class="text"> | ||||
|  | @ -278,7 +278,7 @@ | |||
| 				{{template "repo/issue/openclose" .}} | ||||
| 			</div> | ||||
| 			<div class="issue-list-toolbar-right"> | ||||
| 				<div class="ui secondary filter stackable menu"> | ||||
| 				<div class="ui secondary filter menu"> | ||||
| 					{{if not .Repository.IsArchived}} | ||||
| 					<!-- Action Button --> | ||||
| 					{{if .IsShowClosed}} | ||||
|  |  | |||
|  | @ -1,6 +1,7 @@ | |||
| .issue-list-toolbar { | ||||
|   display: flex; | ||||
|   flex-wrap: wrap; | ||||
|   justify-content: space-between; | ||||
|   align-items: flex-start; | ||||
|   gap: 1rem; | ||||
|   margin-top: 1rem; | ||||
|  | @ -10,17 +11,19 @@ | |||
|   display: flex; | ||||
| } | ||||
| 
 | ||||
| .issue-list-toolbar-right { | ||||
|   margin-left: auto; | ||||
| .issue-list-toolbar-right .filter.menu { | ||||
|   flex-direction: row; | ||||
|   flex-wrap: wrap; | ||||
|   gap: 8px; | ||||
| } | ||||
| 
 | ||||
| @media (max-width: 767.98px) { | ||||
|   .issue-list-toolbar { | ||||
|     flex-direction: column-reverse; | ||||
|   } | ||||
|   .issue-list-toolbar-right { | ||||
|     margin-right: auto; | ||||
|     width: 100%; | ||||
|   .issue-list-toolbar-right .dropdown .menu { | ||||
|     left: auto !important; | ||||
|     right: auto !important; | ||||
|   } | ||||
|   .issue-list-navbar { | ||||
|     order: 0; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Denys Konovalov
				Denys Konovalov