diff options
author | silverwind <me@silverwind.io> | 2024-03-22 14:45:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 13:45:10 +0000 |
commit | f88ad5424f381bf2a45fd863b551c5a72891bb68 (patch) | |
tree | 05ec4c52474381e8c694c539e532a5dafd20d252 /templates/org/team/repositories.tmpl | |
parent | 0c55506b407731546c6bacd1442a785db68f55a7 (diff) | |
download | gitea-f88ad5424f381bf2a45fd863b551c5a72891bb68.tar.gz gitea-f88ad5424f381bf2a45fd863b551c5a72891bb68.zip |
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>
Diffstat (limited to 'templates/org/team/repositories.tmpl')
-rw-r--r-- | templates/org/team/repositories.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index bd38cda6d1..9efe8f9f09 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -9,8 +9,8 @@ {{template "org/team/navbar" .}} {{$canAddRemove := and $.IsOrganizationOwner (not $.Team.IncludesAllRepositories)}} {{if $canAddRemove}} - <div class="ui attached segment gt-df gt-fw gt-gap-3"> - <form class="ui form ignore-dirty gt-f1 gt-df" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/add" method="post"> + <div class="ui attached segment tw-flex tw-flex-wrap gt-gap-3"> + <form class="ui form ignore-dirty tw-flex-1 tw-flex" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/add" method="post"> {{.CsrfTokenHtml}} <div id="search-repo-box" data-uid="{{.Org.ID}}" class="ui search"> <div class="ui input"> @@ -19,7 +19,7 @@ </div> <button class="ui primary button gt-ml-3">{{ctx.Locale.Tr "add"}}</button> </form> - <div class="gt-dib"> + <div class="tw-inline-block"> <button class="ui primary button link-action" data-modal-confirm="{{ctx.Locale.Tr "org.teams.add_all_repos_desc"}}" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/addall">{{ctx.Locale.Tr "add_all"}}</button> <button class="ui red button link-action" data-modal-confirm="{{ctx.Locale.Tr "org.teams.remove_all_repos_desc"}}" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/removeall">{{ctx.Locale.Tr "remove_all"}}</button> </div> @@ -28,7 +28,7 @@ <div class="ui attached segment"> <div class="flex-list"> {{range .Team.Repos}} - <div class="flex-item gt-ac"> + <div class="flex-item tw-content-center"> <div class="flex-item-leading"> {{template "repo/icon" .}} </div> |