mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Fix organization list in dashboard (#26650)
Fix ui problem comes from #26326 Before:  After: 
This commit is contained in:
		| @@ -70,7 +70,7 @@ | |||||||
|       <div v-if="repos.length" class="ui attached table segment gt-rounded-bottom"> |       <div v-if="repos.length" class="ui attached table segment gt-rounded-bottom"> | ||||||
|         <ul class="repo-owner-name-list"> |         <ul class="repo-owner-name-list"> | ||||||
|           <li class="gt-df gt-ac gt-py-3" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id"> |           <li class="gt-df gt-ac gt-py-3" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id"> | ||||||
|             <a class="repo-list-link muted gt-df gt-ac gt-f1 gt-gap-3" :href="repo.link"> |             <a class="repo-list-link muted" :href="repo.link"> | ||||||
|               <svg-icon :name="repoIcon(repo)" :size="16" class-name="repo-list-icon"/> |               <svg-icon :name="repoIcon(repo)" :size="16" class-name="repo-list-icon"/> | ||||||
|               <div class="text truncate">{{ repo.full_name }}</div> |               <div class="text truncate">{{ repo.full_name }}</div> | ||||||
|               <div v-if="repo.archived"> |               <div v-if="repo.archived"> | ||||||
| @@ -126,8 +126,8 @@ | |||||||
|       </h4> |       </h4> | ||||||
|       <div v-if="organizations.length" class="ui attached table segment gt-rounded-bottom"> |       <div v-if="organizations.length" class="ui attached table segment gt-rounded-bottom"> | ||||||
|         <ul class="repo-owner-name-list"> |         <ul class="repo-owner-name-list"> | ||||||
|           <li class="gt-df gt-ac" v-for="org in organizations" :key="org.name"> |           <li class="gt-df gt-ac gt-py-3" v-for="org in organizations" :key="org.name"> | ||||||
|             <a class="repo-list-link muted gt-df gt-ac gt-f1" :href="subUrl + '/' + encodeURIComponent(org.name)"> |             <a class="repo-list-link muted" :href="subUrl + '/' + encodeURIComponent(org.name)"> | ||||||
|               <svg-icon name="octicon-organization" :size="16" class-name="repo-list-icon"/> |               <svg-icon name="octicon-organization" :size="16" class-name="repo-list-icon"/> | ||||||
|               <div class="text truncate">{{ org.name }}</div> |               <div class="text truncate">{{ org.name }}</div> | ||||||
|               <div><!-- div to prevent underline of label on hover --> |               <div><!-- div to prevent underline of label on hover --> | ||||||
| @@ -504,6 +504,10 @@ ul li:not(:last-child) { | |||||||
|  |  | ||||||
| .repo-list-link { | .repo-list-link { | ||||||
|   min-width: 0; /* for text truncation */ |   min-width: 0; /* for text truncation */ | ||||||
|  |   display: flex; | ||||||
|  |   align-items: center; | ||||||
|  |   flex: 1; | ||||||
|  |   gap: 0.5rem; | ||||||
| } | } | ||||||
|  |  | ||||||
| .repo-list-link .svg { | .repo-list-link .svg { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user