diff options
author | Giteabot <teabot@gitea.io> | 2023-06-18 09:02:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-18 13:02:41 +0000 |
commit | b673edbeafa4b6c72ad1c086d1f062bed41eef5f (patch) | |
tree | 97f2f542411e712f002bff2275621eadfd32320a /web_src | |
parent | 05431593ef407fe2d7b552664f7f1d699bb63234 (diff) | |
download | gitea-b673edbeafa4b6c72ad1c086d1f062bed41eef5f.tar.gz gitea-b673edbeafa4b6c72ad1c086d1f062bed41eef5f.zip |
Fix UI on mobile view (#25315) (#25340)
Backport #25315 by @denyskon
Various fixes to pages or elements which were looking ugly on mobile.
<details>
<summary>Screenshots</summary>
![Bildschirmfoto vom 2023-06-17
20-38-41](https://github.com/go-gitea/gitea/assets/47871822/30b5d3ce-df3b-43eb-a4c2-c3790667fb9d)
![Bildschirmfoto vom 2023-06-17
20-39-27](https://github.com/go-gitea/gitea/assets/47871822/27c07b25-3602-4fb2-b34d-d5e875e054e9)
![Bildschirmfoto vom 2023-06-17
20-41-27](https://github.com/go-gitea/gitea/assets/47871822/dacdbb4e-e3dd-4b94-abf0-c68e3d64bd3b)
![Bildschirmfoto vom 2023-06-17
20-41-48](https://github.com/go-gitea/gitea/assets/47871822/72432c35-7c4a-4c7f-a767-3562f26a5c14)
![Bildschirmfoto vom 2023-06-17
20-42-37](https://github.com/go-gitea/gitea/assets/47871822/737c26ed-1910-4467-98ef-e8769bbbe6f0)
![Bildschirmfoto vom 2023-06-17
20-42-52](https://github.com/go-gitea/gitea/assets/47871822/1813b4bc-43c0-4912-8acb-5d799c090bf3)
![Bildschirmfoto vom 2023-06-17
20-43-06](https://github.com/go-gitea/gitea/assets/47871822/136466e8-34e5-419d-97ec-5202ff819fd2)
![Bildschirmfoto vom 2023-06-17
20-43-42](https://github.com/go-gitea/gitea/assets/47871822/59270bb2-d661-4a84-8504-3e50f771f767)
![Bildschirmfoto vom 2023-06-17
20-44-44](https://github.com/go-gitea/gitea/assets/47871822/494e274d-3771-4141-9419-0a4bbd8b7f64)
</details>
Co-authored by: @silverwind
Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/index.css | 1 | ||||
-rw-r--r-- | web_src/css/repo.css | 83 | ||||
-rw-r--r-- | web_src/css/repo/issue-list.css | 20 | ||||
-rw-r--r-- | web_src/css/repo/list-header.css | 14 | ||||
-rw-r--r-- | web_src/css/shared/milestone.css | 66 |
5 files changed, 133 insertions, 51 deletions
diff --git a/web_src/css/index.css b/web_src/css/index.css index c9cc1d8032..125249ceab 100644 --- a/web_src/css/index.css +++ b/web_src/css/index.css @@ -9,6 +9,7 @@ @import "./modules/comment.css"; @import "./shared/issuelist.css"; +@import "./shared/milestone.css"; @import "./shared/repoorg.css"; @import "./shared/settings.css"; diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 546fff32f4..60a2f97a3f 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -87,6 +87,18 @@ } } +.projects-header { + margin-bottom: 1rem; + flex-direction: column; + gap: 8px; +} + +.projects-toolbar { + display: flex; + justify-content: space-between; + padding-left: 4px; +} + .repository .issue-content-right .menu { overflow-x: auto; max-height: 500px; @@ -225,6 +237,14 @@ align-items: center; } +@media (max-width: 767.68px) { + .repository.file.list .repo-description { + flex-direction: column; + gap: 8px; + align-items: normal; + } +} + .repository.file.list #repo-desc { font-size: 1.2em; } @@ -1167,56 +1187,6 @@ margin-top: -8px; } -.repository .milestone.list { - list-style: none; -} - -.repository .milestone.list > .item { - padding-top: 10px; - padding-bottom: 10px; -} - -.repository .milestone.list > .item + .item { - border-top: 1px solid var(--color-secondary); -} - -.repository .milestone.list > .item progress { - width: 200px; - height: 16px; -} - -.repository .milestone.list > .item .meta { - color: var(--color-text-light-2); - padding-top: 5px; -} - -.repository .milestone.list > .item .meta .issue-stats .svg { - padding-left: 5px; -} - -.repository .milestone.list > .item .meta .overdue { - color: var(--color-red); -} - -.repository .milestone.list > .item .operate { - margin-top: -15px; -} - -.repository .milestone.list > .item .operate > a { - font-size: 15px; - padding-top: 5px; - padding-right: 10px; - color: var(--color-text-light-2); -} - -.repository .milestone.list > .item .operate > a:hover { - color: var(--color-text); -} - -.repository .milestone.list > .item .content { - padding-top: 10px; -} - .repository.new.milestone textarea { height: 200px; } @@ -1966,6 +1936,13 @@ } } +.repository .activity-header { + display: flex; + justify-content: space-between; + gap: 8px; + flex-wrap: wrap; +} + .repository.settings.collaboration .collaborator.list { padding: 0; } @@ -3383,6 +3360,12 @@ tbody.commit-list { margin-bottom: 8px; } +@media (max-width: 767.98px) { + #issue-pins { + grid-template-columns: repeat(1, 1fr); + } +} + .pinned-issue-card { border-radius: var(--border-radius); padding: 8px 10px; diff --git a/web_src/css/repo/issue-list.css b/web_src/css/repo/issue-list.css index dde3e7f19f..ddd425d068 100644 --- a/web_src/css/repo/issue-list.css +++ b/web_src/css/repo/issue-list.css @@ -13,3 +13,23 @@ .issue-list-toolbar-right { margin-left: auto; } + +@media (max-width: 767.98px) { + .issue-list-toolbar { + flex-direction: column-reverse; + } + .issue-list-toolbar-right { + margin-right: auto; + width: 100%; + } + .issue-list-navbar { + order: 0; + } + .issue-list-new { + order: 1; + margin-left: auto !important; + } + .issue-list-search { + order: 2 !important; + } +} diff --git a/web_src/css/repo/list-header.css b/web_src/css/repo/list-header.css index 69539b035b..304cfbc13c 100644 --- a/web_src/css/repo/list-header.css +++ b/web_src/css/repo/list-header.css @@ -8,7 +8,6 @@ .list-header-sort { display: flex; align-items: center; - justify-content: flex-end; padding-left: 1rem; padding-right: 1rem; } @@ -44,3 +43,16 @@ .small-menu-items .item.active { background: var(--color-active) !important; } + +@media (max-width: 767.98px) { + .list-header-search { + order: 0; + } + .list-header-toggle { + order: 1; + } + .list-header-sort { + order: 2; + margin-left: auto; + } +} diff --git a/web_src/css/shared/milestone.css b/web_src/css/shared/milestone.css new file mode 100644 index 0000000000..511a1be714 --- /dev/null +++ b/web_src/css/shared/milestone.css @@ -0,0 +1,66 @@ +.milestone-list { + list-style: none; +} + +.milestone-card { + width: 100%; + padding-top: 10px; + padding-bottom: 10px; +} + +.milestone-card + .milestone-card { + border-top: 1px solid var(--color-secondary); +} + +.milestone-card .content { + padding-top: 10px; +} + +.milestone-header progress { + width: 200px; + height: 16px; +} + +.milestone-header { + display: flex; + align-items: center; + margin: 0; + flex-wrap: wrap; + justify-content: space-between; +} + +.milestone-toolbar { + padding-top: 5px; + display: flex; + flex-wrap: wrap; + gap: 8px; + justify-content: space-between; +} + +.milestone-toolbar .group { + color: var(--color-text-light-2); + display: flex; + flex-wrap: wrap; + gap: 8px; +} + +.milestone-toolbar .group .overdue { + color: var(--color-red); +} + +.milestone-toolbar .group > a { + font-size: 15px; + color: var(--color-text-light-2); +} + +.milestone-toolbar .group > a:hover { + color: var(--color-text); +} + +@media (max-width: 767.98px) { + .milestone-card { + display: flex; + flex-direction: column; + gap: 8px; + } +} |