diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-05-01 16:11:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-01 18:11:21 +0200 |
commit | 3725fa28ccc01ab08060f591f894ea6443a348e8 (patch) | |
tree | 414d1125e631671f28be9becc8fd38bf8b517be1 /templates | |
parent | ac6c338428b83d0cb80764571e2402402beb2788 (diff) | |
download | gitea-3725fa28ccc01ab08060f591f894ea6443a348e8.tar.gz gitea-3725fa28ccc01ab08060f591f894ea6443a348e8.zip |
Improve UI on mobile (#19546)
Start making the mobile experience not painful and be actually usable. This contains a few smaller changes to enhance this experience.
- Submit buttons on the review forms aren't columns anymore and are now allowed to be displayed on one row.
- The label/milestone & New Issue buttons were given each own row even tough, there's enough place to do it one the same row. This commit fixes that.
- The issues+Pull tab on repo's has a third item besides the label/milestone & New Issue buttons, the search bar. On desktop there's enough place to do this on one row, for mobile it isn't, currently it was using for each item a new row. This commits fixes that by only giving the searchbar a new row and have the other two buttons on the same row.
- The notification table will now be show a scrollbar instead of overflow.
- The repo buttons(Watch, Star, Fork) on mobile were showing quite big and the SVG wasn't even displayed on the same line, if the count of those numbers were too high it would even overflow. This commit removes the SVG, as there isn't any place to show them on the same row and allows them to have a new row if the counts of those buttons are high.
- The admin page can show you a lot of interesting information, on mobile the System Status + Configuration weren't properly displayed as the margin's were too high. This commit fixes that by reducing the margin to a number that makes sense on mobile.
- Fixes to not overflow the tables but instead force them to be scrollable.
- When viewing a issue or pull request, the comments aren't full-width but instead 80% and aligned to right, on mobile this is a annoyance as there isn't much width to begin with. This commits fixes that by forcing full-width and removing the avatars on the left side and instead including them inline in the comment header.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/auth/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/cron.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/emails/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/monitor.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/notice.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/org/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/packages/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/repo/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/list.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/list.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 7 | ||||
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 5 |
13 files changed, 21 insertions, 13 deletions
diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index 71e5bfbda8..b4a703e413 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -10,7 +10,7 @@ </div> </h4> <div class="ui attached table segment"> - <table class="ui very basic striped table"> + <table class="ui very basic striped table unstackable"> <thead> <tr> <th>ID</th> diff --git a/templates/admin/cron.tmpl b/templates/admin/cron.tmpl index 30277177ed..a73813ef88 100644 --- a/templates/admin/cron.tmpl +++ b/templates/admin/cron.tmpl @@ -3,7 +3,7 @@ </h4> <div class="ui attached table segment"> <form method="post" action="{{AppSubUrl}}/admin"> - <table class="ui very basic striped table"> + <table class="ui very basic striped table unstackable"> <thead> <tr> <th></th> diff --git a/templates/admin/emails/list.tmpl b/templates/admin/emails/list.tmpl index e73213c1df..277c777a89 100644 --- a/templates/admin/emails/list.tmpl +++ b/templates/admin/emails/list.tmpl @@ -30,7 +30,7 @@ </form> </div> <div class="ui attached table segment"> - <table class="ui very basic striped table"> + <table class="ui very basic striped table unstackable"> <thead> <tr> <th data-sortt-asc="username" data-sortt-desc="reverseusername"> diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl index 443159f8ce..86686101ac 100644 --- a/templates/admin/monitor.tmpl +++ b/templates/admin/monitor.tmpl @@ -8,7 +8,7 @@ {{.i18n.Tr "admin.monitor.queues"}} </h4> <div class="ui attached table segment"> - <table class="ui very basic striped table"> + <table class="ui very basic striped table unstackable"> <thead> <tr> <th>{{.i18n.Tr "admin.monitor.queue.name"}}</th> diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index 9fec53b315..8d0e1c2206 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -7,7 +7,7 @@ {{.i18n.Tr "admin.notices.system_notice_list"}} ({{.i18n.Tr "admin.total" .Total}}) </h4> <div class="ui attached table segment"> - <table id="notice-table" class="ui very basic select selectable table"> + <table id="notice-table" class="ui very basic select selectable table unstackable"> <thead> <tr> <th></th> diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index 75c4d39196..0782ef64e9 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -13,7 +13,7 @@ {{template "admin/base/search" .}} </div> <div class="ui attached table segment"> - <table class="ui very basic striped table"> + <table class="ui very basic striped table unstackable"> <thead> <tr> <th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" $.SortType false}}</th> diff --git a/templates/admin/packages/list.tmpl b/templates/admin/packages/list.tmpl index 373a97407b..df89d8bed2 100644 --- a/templates/admin/packages/list.tmpl +++ b/templates/admin/packages/list.tmpl @@ -29,7 +29,7 @@ </form> </div> <div class="ui attached table segment"> - <table class="ui very basic striped table"> + <table class="ui very basic striped table unstackable"> <thead> <tr> <th>ID</th> diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index d7561dde7d..da05bfab96 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -13,7 +13,7 @@ {{template "admin/repo/search" .}} </div> <div class="ui attached table segment"> - <table class="ui very basic striped table"> + <table class="ui very basic striped table unstackable"> <thead> <tr> <th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" $.SortType false}}</th> diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 93e6f38c27..755e4436f8 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -61,7 +61,7 @@ </form> </div> <div class="ui attached table segment"> - <table class="ui very basic striped table"> + <table class="ui very basic striped table unstackable"> <thead> <tr> <th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" .SortType false}}</th> diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 63d746f570..ba7f1c1480 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -2,7 +2,7 @@ <div class="page-content repository"> {{template "repo/header" .}} <div class="ui container"> - <div class="ui three column stackable grid"> + <div class="ui three column grid issue-list-headers"> <div class="column"> {{template "repo/issue/navbar" .}} </div> diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl index acfd25e7e0..c1fedac04c 100644 --- a/templates/repo/issue/view.tmpl +++ b/templates/repo/issue/view.tmpl @@ -2,7 +2,7 @@ <div class="page-content repository view issue pull"> {{template "repo/header" .}} <div class="ui container"> - <div class="ui two column stackable grid"> + <div class="ui two column grid"> <div class="column"> {{template "repo/issue/navbar" .}} </div> diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 46a2a3969b..b5f838e9d0 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -41,6 +41,9 @@ {{if .Repository.OriginalURL}} ({{$.i18n.Tr "repo.migrated_from" (.Repository.OriginalURL|Escape) (.Repository.GetOriginalURLHostname|Escape) | Safe }}){{end}} </span> {{else}} + <a class="inline-timeline-avatar" href="{{.Issue.Poster.HomeLink}}"> + {{avatar .Issue.Poster}} + </a> <span class="text grey"> <a class="author"{{if gt .Issue.Poster.ID 0}} href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.GetDisplayName}}</a> {{.i18n.Tr "repo.issues.commented_at" (.Issue.HashTag|Escape) $createdStr | Safe}} @@ -50,12 +53,12 @@ <div class="comment-header-right actions df ac"> {{if gt .Issue.ShowRole 0}} {{if (.Issue.ShowRole.HasRole "Writer")}} - <div class="ui basic label"> + <div class="ui basic label role-label"> {{$.i18n.Tr "repo.issues.collaborator"}} </div> {{end}} {{if (.Issue.ShowRole.HasRole "Owner")}} - <div class="ui basic label"> + <div class="ui basic label role-label"> {{$.i18n.Tr "repo.issues.owner"}} </div> {{end}} diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 7c4e63314d..7ff7f247fc 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -35,6 +35,11 @@ ({{$.i18n.Tr "repo.migrated_from" ($.Repository.OriginalURL|Escape) ($.Repository.GetOriginalURLHostname|Escape) | Safe }}){{end}} </span> {{else}} + {{if gt .Poster.ID 0}} + <a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> + {{avatar .Poster}} + </a> + {{end}} <span class="text grey"> <a class="author"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> {{.Poster.GetDisplayName}} |