aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-31 10:29:59 +0800
committerGitHub <noreply@github.com>2023-08-31 02:29:59 +0000
commit19a1e1b20ee45f02908c915c8540baab1396899c (patch)
treecceca2b1d7682a3d8420665910bea92a35df924b /templates/org
parent98f2bf23bc57d734471a08e396c687be6d194313 (diff)
downloadgitea-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/org')
-rw-r--r--templates/org/settings/labels.tmpl10
-rw-r--r--templates/org/team/repositories.tmpl2
2 files changed, 4 insertions, 8 deletions
diff --git a/templates/org/settings/labels.tmpl b/templates/org/settings/labels.tmpl
index 2700c61bb6..81dde17455 100644
--- a/templates/org/settings/labels.tmpl
+++ b/templates/org/settings/labels.tmpl
@@ -1,14 +1,10 @@
{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings labels")}}
<div class="org-setting-content">
- <div class="ui grid">
- <div class="left floated twelve wide column">
+ <div class="gt-df gt-ac">
+ <div class="gt-f1">
{{$.locale.Tr "org.settings.labels_desc" | Str2html}}
</div>
- <div class="right floated three wide column">
- <div class="ui right">
- <button class="ui small green new-label button">{{.locale.Tr "repo.issues.new_label"}}</button>
- </div>
- </div>
+ <button class="ui small green new-label button">{{.locale.Tr "repo.issues.new_label"}}</button>
</div>
<div class="divider"></div>
{{template "repo/issue/labels/label_new" .}}
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl
index 65eb64cb54..71c9bb9563 100644
--- a/templates/org/team/repositories.tmpl
+++ b/templates/org/team/repositories.tmpl
@@ -41,7 +41,7 @@
{{if $canAddRemove}}
<form method="post" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/remove">
{{$.CsrfTokenHtml}}
- <button type="submit" class="ui red small button right" name="repoid" value="{{.ID}}">{{$.locale.Tr "remove"}}</button>
+ <button type="submit" class="ui red small button" name="repoid" value="{{.ID}}">{{$.locale.Tr "remove"}}</button>
</form>
{{end}}
</div>