mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Improve some flex layouts (#26649)
Fix #26617 1. Separate the "flex-list" examples into a dedicated template, and add some more examples 2. Use `flex-basis` instead of `flex-shrink` for `flex-item-trailing`, to avoid wrapping the texts too aggressively 3. Some `flex-wrap: wrap;` are removed
This commit is contained in:
		| @@ -29,7 +29,7 @@ | ||||
|   display: flex; | ||||
|   flex-direction: column; | ||||
|   flex-grow: 1; | ||||
|   min-width: 0; | ||||
|   flex-basis: 60%; | ||||
| } | ||||
|  | ||||
| .flex-item-header { | ||||
| @@ -54,7 +54,6 @@ | ||||
|   flex-grow: 0; | ||||
|   flex-wrap: wrap; | ||||
|   justify-content: end; | ||||
|   flex-shrink: 2; | ||||
| } | ||||
|  | ||||
| .flex-item .flex-item-title { | ||||
| @@ -65,8 +64,8 @@ | ||||
|   max-width: 100%; | ||||
|   color: var(--color-text); | ||||
|   font-size: 16px; | ||||
|   min-width: 0; | ||||
|   font-weight: var(--font-weight-semibold); | ||||
|   word-break: break-word; | ||||
| } | ||||
|  | ||||
| .flex-item .flex-item-title a { | ||||
| @@ -81,6 +80,7 @@ | ||||
|   flex-wrap: wrap; | ||||
|   gap: .25rem; | ||||
|   color: var(--color-text-light-2); | ||||
|   word-break: break-word; | ||||
| } | ||||
|  | ||||
| .flex-item .flex-item-body a { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user