diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-31 10:29:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 02:29:59 +0000 |
commit | 19a1e1b20ee45f02908c915c8540baab1396899c (patch) | |
tree | cceca2b1d7682a3d8420665910bea92a35df924b /templates/user/settings | |
parent | 98f2bf23bc57d734471a08e396c687be6d194313 (diff) | |
download | gitea-19a1e1b20ee45f02908c915c8540baab1396899c.tar.gz gitea-19a1e1b20ee45f02908c915c8540baab1396899c.zip |
Remove polluted `.ui.right` (#26825)
Each change is tested manually line by line. There are too many changes
so I can't share dozens of screenshots.
In short:
1. `ui right` could be still used in `ui top attached header`, because
there is a special case.
2. A lot of `ui right` are just no-op, so they can be removed safely.
3. Some of the `ui right` should be replaced by `gt-float-right` (to
avoid breaking, leave them to the future).
4. A few of the `ui right` could be rewritten by flex.
Diffstat (limited to 'templates/user/settings')
-rw-r--r-- | templates/user/settings/repos.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl index 963f889144..caee1135c5 100644 --- a/templates/user/settings/repos.tmpl +++ b/templates/user/settings/repos.tmpl @@ -32,7 +32,7 @@ {{else}} <span class="icon gt-dib gt-pt-3">{{svg "octicon-file-directory-fill"}}</span> <span class="name gt-dib gt-pt-3">{{$.ContextUser.Name}}/{{$dir}}</span> - <div class="ui right"> + <div class="gt-float-right"> {{if $.allowAdopt}} <button class="ui button green show-modal gt-p-3" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.locale.Tr "repo.adopt_preexisting_label"}}</span></button> <div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}"> |