mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 07:25:36 +00:00 
			
		
		
		
	Improve flex ellipsis (#30479)
 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		@@ -1341,6 +1341,7 @@ table th[data-sortt-desc] .svg {
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  gap: .25rem;
 | 
			
		||||
  vertical-align: middle;
 | 
			
		||||
  min-width: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.ui.dropdown .ui.label .svg {
 | 
			
		||||
@@ -1357,6 +1358,7 @@ table th[data-sortt-desc] .svg {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  gap: .25rem;
 | 
			
		||||
  min-width: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* to override Fomantic's default display: block for ".menu .item", and use a slightly larger gap for menu item content */
 | 
			
		||||
@@ -1364,4 +1366,5 @@ table th[data-sortt-desc] .svg {
 | 
			
		||||
  display: flex !important;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  gap: .5rem;
 | 
			
		||||
  min-width: 0;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -5,6 +5,8 @@
 | 
			
		||||
  display: inline-flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  gap: .25rem;
 | 
			
		||||
  min-width: 0;
 | 
			
		||||
  max-width: 100%; /* since we are using "flex" to align label contents, we also need to limit the x-axis, a label shouldn't be wider than 100% */
 | 
			
		||||
  vertical-align: middle;
 | 
			
		||||
  line-height: 1;
 | 
			
		||||
  background: var(--color-label-bg);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user