diff options
author | Denys Konovalov <kontakt@denyskon.de> | 2023-07-13 22:00:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 20:00:38 +0000 |
commit | eec45b43db3b30c1d197e0d3cd03de00fd84e744 (patch) | |
tree | f48ec797aef4bdc887ea6dbcadf60044614e1d85 /web_src | |
parent | ef90fdbd1d7e1f62ed5bf18757e00e97817eb602 (diff) | |
download | gitea-eec45b43db3b30c1d197e0d3cd03de00fd84e744.tar.gz gitea-eec45b43db3b30c1d197e0d3cd03de00fd84e744.zip |
move issue filters to shared template (#25729)
Issue filters are being used on repo list page and on milestone issues
page, and the code is mostly duplicated.
This PR does the following changes:
- move issue filters into a shared template
- allow filtering milestone issues by project, so no need to hide this
filter on milestone issues page
- remove some dead code (e. g. issue actions in milestone issues
template)
- fix label filter dropdown width
---------
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/repo.css | 1 | ||||
-rw-r--r-- | web_src/css/repo/issue-list.css | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index da5cd06b3e..ff539228f5 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -169,6 +169,7 @@ /* the label-filter is the first dropdown, it shouldn't be shown leftward, otherwise it may go out the viewport (left side) */ .repository .filter.menu .ui.dropdown.label-filter .menu { + min-width: max-content; right: unset; left: 0; } diff --git a/web_src/css/repo/issue-list.css b/web_src/css/repo/issue-list.css index 8602bb9a97..7769a16f5f 100644 --- a/web_src/css/repo/issue-list.css +++ b/web_src/css/repo/issue-list.css @@ -1,6 +1,6 @@ .issue-list-toolbar { display: flex; - flex-wrap: wrap; + flex-wrap: wrap-reverse; justify-content: space-between; align-items: flex-start; gap: 1rem; @@ -14,13 +14,9 @@ .issue-list-toolbar-right .filter.menu { flex-direction: row; flex-wrap: wrap; - gap: 8px; } @media (max-width: 767.98px) { - .issue-list-toolbar { - flex-direction: column-reverse; - } .issue-list-toolbar-right .dropdown .menu { left: auto !important; right: auto !important; |