mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	feat(ui): improve org header with new noJS dropdown and more options (#8572)
Related: https://codeberg.org/forgejo/forgejo/pulls/6977/files#diff-fd05eba523810d46c7763db938ad5839372a074a, https://codeberg.org/forgejo/forgejo/pulls/3949, https://codeberg.org/forgejo/forgejo/pulls/7906 * use the new noJS dropdown for extra actions in org view (currently only includes report button) * this required some refactoring of the area because the said dropdown was not built to be placed in an area where `font-size:36px` is forced onto everything * this greatly improves consistently with user profiles which now use this type of dropdown * I decided against making the opener button mimicrate an actual button because it looks ok as is and is consitent with menu in user profiles and because I don't think this is a good design language to make a kebab menu opener look this way * add icon to the entry * add atom entry Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8572 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: Beowulf <beowulf@beocode.eu> Co-authored-by: 0ko <0ko@noreply.codeberg.org> Co-committed-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
		
					parent
					
						
							
								b06f4fdd63
							
						
					
				
			
			
				commit
				
					
						c11dd3fb46
					
				
			
		
					 5 changed files with 88 additions and 27 deletions
				
			
		|  | @ -99,7 +99,13 @@ details.dropdown > summary + ul > li:last-child { | |||
| /* Note: https://css-tricks.com/css-anchor-positioning-guide/ | ||||
| *  looks like a great thing but FF still doesn't support it. */ | ||||
| 
 | ||||
| /* Note: dropdown.dir-rtl can be implemented when needed, e.g. for navbar profile dropdown on desktop layout. */ | ||||
| details.dropdown.dir-rtl > summary + ul { | ||||
|   inset-inline: 0 auto; | ||||
|   direction: rtl; | ||||
| } | ||||
| details.dropdown.dir-rtl > summary + ul > li { | ||||
|   direction: ltr; | ||||
| } | ||||
| 
 | ||||
| details.dropdown > summary + ul > li > .item { | ||||
|   padding: var(--dropdown-item-padding); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue