diff options
author | silverwind <me@silverwind.io> | 2024-03-28 00:20:38 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-03-30 07:17:31 +0100 |
commit | 47c61f909c7f3072c4e87e713b1021062262a241 (patch) | |
tree | 71740cd4704037ad9b6e0d098a2c36f0ccaa4c00 /templates/projects | |
parent | Fix table alignment classes (#30144) (diff) | |
download | forgejo-47c61f909c7f3072c4e87e713b1021062262a241.tar.xz forgejo-47c61f909c7f3072c4e87e713b1021062262a241.zip |
Drag-and-drop improvements for projects and issue pins (#29875)
1. Add "grabbing" cursor while dragging items:
![](https://github.com/go-gitea/gitea/assets/115237/c60845ff-7544-4215-aeaa-408e8c4ef03a)
2. Make project board only drag via their header, not via their whole
body.
![](https://github.com/go-gitea/gitea/assets/115237/62c27f3d-993a-481d-9cc3-b6226b4c5d61)
3. Fix some cursor problems in projects
4. Move shared options into `createSortable`.
(cherry picked from commit 7fda109aba6cd077343edef086b2f2ff60124f78)
Diffstat (limited to 'templates/projects')
-rw-r--r-- | templates/projects/view.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index e6c6c20497..b45174b086 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -67,7 +67,7 @@ <div class="board {{if .CanWriteProjects}}sortable{{end}}"> {{range .Columns}} <div class="ui segment project-column" style="background: {{.Color}} !important;" data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.Link}}/{{.ID}}"> - <div class="project-column-header"> + <div class="project-column-header{{if $canWriteProject}} tw-cursor-grab{{end}}"> <div class="ui large label project-column-title tw-py-1"> <div class="ui small circular grey label project-column-issue-count"> {{.NumIssues ctx}} @@ -156,7 +156,7 @@ <div class="divider"></div> - <div class="ui cards{{if $canWriteProject}} tw-cursor-grab{{end}}" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}"> + <div class="ui cards" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}"> {{range (index $.IssuesMap .ID)}} <div class="issue-card gt-word-break {{if $canWriteProject}}tw-cursor-grab{{end}}" data-issue="{{.ID}}"> {{template "repo/issue/card" (dict "Issue" . "Page" $)}} |