diff options
author | silverwind <me@silverwind.io> | 2024-04-29 22:53:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 20:53:15 +0000 |
commit | a3d9f0d9151dbdcd77bf68f70b8e9497da5f2d3f (patch) | |
tree | ea09e31d9d83f29ab749698dacb8b74fb3968785 /templates/user | |
parent | 4daea7c603c085eeda7017ac7188de7828824ed4 (diff) | |
download | gitea-a3d9f0d9151dbdcd77bf68f70b8e9497da5f2d3f.tar.gz gitea-a3d9f0d9151dbdcd77bf68f70b8e9497da5f2d3f.zip |
Fix all rounded borders, change affected tab menus to pills (#30707)
Fixes https://github.com/go-gitea/gitea/issues/30673, all 23 issues.
Notes:
- Tab bar menus had to change to pills because of unsolvable issue with
the border-radius as tab bar renders a overlapping border onto the box
below. And I think pills look better.
- Added padding to code editor empty preview message
- Hide monaco's built-in blue focus border, we don't need it and it
never showed before either.
- Label add menu is simplified, removing the nested segment.
<img width="1322" alt="Screenshot 2024-04-25 at 22 26 19"
src="https://github.com/go-gitea/gitea/assets/115237/7e394e0c-b7ad-417d-8e9f-12f1dea93ed1">
<img width="1326" alt="Screenshot 2024-04-25 at 22 28 00"
src="https://github.com/go-gitea/gitea/assets/115237/66c8499f-aa9f-4d95-8cca-ef13dfa82c65">
<img width="997" alt="Screenshot 2024-04-25 at 22 36 53"
src="https://github.com/go-gitea/gitea/assets/115237/07896102-c71d-4246-8173-c2bc2e1d3cae">
<img width="832" alt="Screenshot 2024-04-25 at 22 56 09"
src="https://github.com/go-gitea/gitea/assets/115237/d83afc96-08ca-4adc-baf4-3d02804be57c">
<img width="361" alt="Screenshot 2024-04-25 at 22 57 12"
src="https://github.com/go-gitea/gitea/assets/115237/c7371a68-00b5-47d8-84d0-ddc5268b2b2c">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/user')
6 files changed, 7 insertions, 7 deletions
diff --git a/templates/user/notification/notification_subscriptions.tmpl b/templates/user/notification/notification_subscriptions.tmpl index a5a965ca52..b92a32a957 100644 --- a/templates/user/notification/notification_subscriptions.tmpl +++ b/templates/user/notification/notification_subscriptions.tmpl @@ -1,7 +1,7 @@ {{template "base/head" .}} <div role="main" aria-label="{{.Title}}" class="page-content user notification"> <div class="ui container"> - <div class="ui top attached tabular menu"> + <div class="ui compact small menu small-menu-items"> <a href="{{AppSubUrl}}/notifications/subscriptions" class="{{if eq .Status 1}}active {{end}}item"> {{ctx.Locale.Tr "notification.subscriptions"}} </a> @@ -9,7 +9,7 @@ {{ctx.Locale.Tr "notification.watching"}} </a> </div> - <div class="ui bottom attached active tab segment"> + <div class="ui top attached segment"> {{if eq .Status 1}} <div class="tw-flex tw-justify-between"> <div class="tw-flex"> diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 040f46e48b..2aaf8535d1 100644 --- a/templates/user/settings/account.tmpl +++ b/templates/user/settings/account.tmpl @@ -111,7 +111,7 @@ {{end}} </div> </div> - <div class="ui attached bottom segment"> + <div class="ui bottom attached segment"> <form class="ui form" action="{{AppSubUrl}}/user/settings/account/email" method="post"> {{.CsrfTokenHtml}} <div class="required field {{if .Err_Email}}error{{end}}"> diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index 8baa07c90b..8c67653e58 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -49,7 +49,7 @@ {{end}} </div> </div> - <div class="ui attached bottom segment"> + <div class="ui bottom attached segment"> <h5 class="ui top header"> {{ctx.Locale.Tr "settings.generate_new_token"}} </h5> diff --git a/templates/user/settings/applications_oauth2_edit_form.tmpl b/templates/user/settings/applications_oauth2_edit_form.tmpl index 199d43a65c..e62115d226 100644 --- a/templates/user/settings/applications_oauth2_edit_form.tmpl +++ b/templates/user/settings/applications_oauth2_edit_form.tmpl @@ -30,7 +30,7 @@ </form> </div> </div> -<div class="ui attached bottom segment"> +<div class="ui bottom attached segment"> <form class="ui form ignore-dirty" action="{{.FormActionPath}}" method="post"> {{.CsrfTokenHtml}} <div class="field {{if .Err_AppName}}error{{end}}"> diff --git a/templates/user/settings/applications_oauth2_list.tmpl b/templates/user/settings/applications_oauth2_list.tmpl index c75cbd532e..e9e02179f5 100644 --- a/templates/user/settings/applications_oauth2_list.tmpl +++ b/templates/user/settings/applications_oauth2_list.tmpl @@ -47,7 +47,7 @@ </div> </div> -<div class="ui attached bottom segment"> +<div class="ui bottom attached segment"> <h5 class="ui top header"> {{ctx.Locale.Tr "settings.create_oauth2_application"}} </h5> diff --git a/templates/user/settings/security/openid.tmpl b/templates/user/settings/security/openid.tmpl index b0473c9df5..87ba953e79 100644 --- a/templates/user/settings/security/openid.tmpl +++ b/templates/user/settings/security/openid.tmpl @@ -38,7 +38,7 @@ {{end}} </div> </div> -<div class="ui attached bottom segment"> +<div class="ui bottom attached segment"> <form class="ui form" action="{{AppSubUrl}}/user/settings/security/openid" method="post"> {{.CsrfTokenHtml}} <div class="required field {{if .Err_OpenID}}error{{end}}"> |