mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Fix incorrect tailwind migration (#30007)
Fixes https://github.com/go-gitea/gitea/issues/30005. Regression from https://github.com/go-gitea/gitea/pull/29945. There was only once instance of `tw-content-center` before that PR, so I just ran below command and reverted that one instance. ```sh perl -p -i -e 's#tw-content-center#tw-items-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/* ```
This commit is contained in:
		| @@ -345,12 +345,12 @@ export default sfc; // activate the IDE's Vue plugin | ||||
|       <a :class="{item: true, active: tab === 'organizations'}" @click="changeTab('organizations')">{{ textOrganization }}</a> | ||||
|     </div> | ||||
|     <div v-show="tab === 'repos'" class="ui tab active list dashboard-repos"> | ||||
|       <h4 class="ui top attached header tw-flex tw-content-center"> | ||||
|         <div class="tw-flex-1 tw-flex tw-content-center"> | ||||
|       <h4 class="ui top attached header tw-flex tw-items-center"> | ||||
|         <div class="tw-flex-1 tw-flex tw-items-center"> | ||||
|           {{ textMyRepos }} | ||||
|           <span class="ui grey label gt-ml-3">{{ reposTotalCount }}</span> | ||||
|         </div> | ||||
|         <a class="tw-flex tw-content-center muted" :href="subUrl + '/repo/create' + (isOrganization ? '?org=' + organizationId : '')" :data-tooltip-content="textNewRepo"> | ||||
|         <a class="tw-flex tw-items-center muted" :href="subUrl + '/repo/create' + (isOrganization ? '?org=' + organizationId : '')" :data-tooltip-content="textNewRepo"> | ||||
|           <svg-icon name="octicon-plus"/> | ||||
|         </a> | ||||
|       </h4> | ||||
| @@ -411,7 +411,7 @@ export default sfc; // activate the IDE's Vue plugin | ||||
|       </div> | ||||
|       <div v-if="repos.length" class="ui attached table segment tw-rounded-b"> | ||||
|         <ul class="repo-owner-name-list"> | ||||
|           <li class="tw-flex tw-content-center gt-py-3" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id"> | ||||
|           <li class="tw-flex tw-items-center gt-py-3" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id"> | ||||
|             <a class="repo-list-link muted" :href="repo.link"> | ||||
|               <svg-icon :name="repoIcon(repo)" :size="16" class-name="repo-list-icon"/> | ||||
|               <div class="text truncate">{{ repo.full_name }}</div> | ||||
| @@ -419,7 +419,7 @@ export default sfc; // activate the IDE's Vue plugin | ||||
|                 <svg-icon name="octicon-archive" :size="16"/> | ||||
|               </div> | ||||
|             </a> | ||||
|             <a class="tw-flex tw-content-center" v-if="repo.latest_commit_status_state" :href="repo.latest_commit_status_state_link" :data-tooltip-content="repo.locale_latest_commit_status_state"> | ||||
|             <a class="tw-flex tw-items-center" v-if="repo.latest_commit_status_state" :href="repo.latest_commit_status_state_link" :data-tooltip-content="repo.locale_latest_commit_status_state"> | ||||
|               <!-- the commit status icon logic is taken from templates/repo/commit_status.tmpl --> | ||||
|               <svg-icon :name="statusIcon(repo.latest_commit_status_state)" :class-name="'gt-ml-3 commit-status icon text ' + statusColor(repo.latest_commit_status_state)" :size="16"/> | ||||
|             </a> | ||||
| @@ -458,18 +458,18 @@ export default sfc; // activate the IDE's Vue plugin | ||||
|       </div> | ||||
|     </div> | ||||
|     <div v-if="!isOrganization" v-show="tab === 'organizations'" class="ui tab active list dashboard-orgs"> | ||||
|       <h4 class="ui top attached header tw-flex tw-content-center"> | ||||
|         <div class="tw-flex-1 tw-flex tw-content-center"> | ||||
|       <h4 class="ui top attached header tw-flex tw-items-center"> | ||||
|         <div class="tw-flex-1 tw-flex tw-items-center"> | ||||
|           {{ textMyOrgs }} | ||||
|           <span class="ui grey label gt-ml-3">{{ organizationsTotalCount }}</span> | ||||
|         </div> | ||||
|         <a class="tw-flex tw-content-center muted" v-if="canCreateOrganization" :href="subUrl + '/org/create'" :data-tooltip-content="textNewOrg"> | ||||
|         <a class="tw-flex tw-items-center muted" v-if="canCreateOrganization" :href="subUrl + '/org/create'" :data-tooltip-content="textNewOrg"> | ||||
|           <svg-icon name="octicon-plus"/> | ||||
|         </a> | ||||
|       </h4> | ||||
|       <div v-if="organizations.length" class="ui attached table segment tw-rounded-b"> | ||||
|         <ul class="repo-owner-name-list"> | ||||
|           <li class="tw-flex tw-content-center gt-py-3" v-for="org in organizations" :key="org.name"> | ||||
|           <li class="tw-flex tw-items-center gt-py-3" v-for="org in organizations" :key="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"/> | ||||
|               <div class="text truncate">{{ org.name }}</div> | ||||
| @@ -479,7 +479,7 @@ export default sfc; // activate the IDE's Vue plugin | ||||
|                 </span> | ||||
|               </div> | ||||
|             </a> | ||||
|             <div class="text light grey tw-flex tw-content-center gt-ml-3"> | ||||
|             <div class="text light grey tw-flex tw-items-center gt-ml-3"> | ||||
|               {{ org.num_repos }} | ||||
|               <svg-icon name="octicon-repo" :size="16" class-name="gt-ml-2 gt-mt-1"/> | ||||
|             </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user