mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	Replace 10 more gt- classes with tw- (#29945)
Likely the biggest change of the tailwind refactors. Only thing of note is that `tw-flex-1` resolves to `flex: 1 1 0%` while our `gt-f1` was `flex: 1 1 0`, I don't think it will make any difference. Commands I've ran: ```sh perl -p -i -e 's#gt-vm#tw-align-middle#g' web_src/js/**/* templates/**/* models/**/* perl -p -i -e 's#gt-fw#tw-flex-wrap#g' web_src/js/**/* templates/**/* models/**/* perl -p -i -e 's#gt-f1#tw-flex-1#g' web_src/js/**/* templates/**/* models/**/* perl -p -i -e 's#gt-fc#tw-flex-col#g' web_src/js/**/* templates/**/* models/**/* perl -p -i -e 's#gt-sb#tw-justify-between#g' web_src/js/**/* templates/**/* models/**/* perl -p -i -e 's#gt-je#tw-justify-end#g' web_src/js/**/* templates/**/* models/**/* perl -p -i -e 's#gt-jc#tw-justify-center#g' web_src/js/**/* templates/**/* models/**/* perl -p -i -e 's#gt-ac#tw-content-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/* perl -p -i -e 's#gt-df#tw-flex#g' web_src/js/**/* templates/**/* models/**/* tests/**/* perl -p -i -e 's#gt-dib#tw-inline-block#g' web_src/js/**/* templates/**/* models/**/* tests/**/* Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -303,7 +303,7 @@ export default { | ||||
| </script> | ||||
| <template> | ||||
|   <div> | ||||
|     <div class="ui header gt-df gt-ac gt-sb"> | ||||
|     <div class="ui header tw-flex tw-content-center tw-justify-between"> | ||||
|       <div> | ||||
|         <relative-time | ||||
|           v-if="xAxisMin > 0" | ||||
| @@ -352,7 +352,7 @@ export default { | ||||
|         </div> | ||||
|       </div> | ||||
|     </div> | ||||
|     <div class="gt-df ui segment main-graph"> | ||||
|     <div class="tw-flex ui segment main-graph"> | ||||
|       <div v-if="isLoading || errorText !== ''" class="gt-tc tw-m-auto"> | ||||
|         <div v-if="isLoading"> | ||||
|           <SvgIcon name="octicon-sync" class="gt-mr-3 job-status-rotate"/> | ||||
| @@ -374,17 +374,17 @@ export default { | ||||
|         :key="index" | ||||
|         v-memo="[sortedContributors, type]" | ||||
|       > | ||||
|         <div class="ui top attached header gt-df gt-f1"> | ||||
|         <div class="ui top attached header tw-flex tw-flex-1"> | ||||
|           <b class="ui right">#{{ index + 1 }}</b> | ||||
|           <a :href="contributor.home_link"> | ||||
|             <img class="ui avatar gt-vm" height="40" width="40" :src="contributor.avatar_link"> | ||||
|             <img class="ui avatar tw-align-middle" height="40" width="40" :src="contributor.avatar_link"> | ||||
|           </a> | ||||
|           <div class="gt-ml-3"> | ||||
|             <a v-if="contributor.home_link !== ''" :href="contributor.home_link"><h4>{{ contributor.name }}</h4></a> | ||||
|             <h4 v-else class="contributor-name"> | ||||
|               {{ contributor.name }} | ||||
|             </h4> | ||||
|             <p class="gt-font-12 gt-df gt-gap-2"> | ||||
|             <p class="gt-font-12 tw-flex gt-gap-2"> | ||||
|               <strong v-if="contributor.total_commits">{{ contributor.total_commits.toLocaleString() }} {{ locale.contributionType.commits }}</strong> | ||||
|               <strong v-if="contributor.total_additions" class="text green">{{ contributor.total_additions.toLocaleString() }}++ </strong> | ||||
|               <strong v-if="contributor.total_deletions" class="text red"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user