]> source.dussan.org Git - gitea.git/commitdiff
Remove .segment from .project-column (#31204) (#31239)
authorGiteabot <teabot@gitea.io>
Tue, 4 Jun 2024 09:45:50 +0000 (17:45 +0800)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 09:45:50 +0000 (09:45 +0000)
Backport #31204 by @silverwind

Using `.segment` on the project columns is a major abuse of that class,
so remove it and instead set the border-radius directly on it.

Fixes: https://github.com/go-gitea/gitea/issues/31129
Co-authored-by: silverwind <me@silverwind.io>
templates/projects/view.tmpl
web_src/css/features/projects.css

index 45c8461218877443e85fa61607ba273b740f779e..6d331caba7ebf8b6ecabef34092b1805d2601bf5 100644 (file)
@@ -66,7 +66,7 @@
 <div id="project-board">
        <div class="board {{if .CanWriteProjects}}sortable{{end}}"{{if .CanWriteProjects}} data-url="{{$.Link}}/move"{{end}}>
                {{range .Columns}}
-                       <div class="ui segment project-column"{{if .Color}} style="background: {{.Color}} !important; color: {{ContrastColor .Color}} !important"{{end}} data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.Link}}/{{.ID}}">
+                       <div class="project-column"{{if .Color}} style="background: {{.Color}} !important; color: {{ContrastColor .Color}} !important"{{end}} data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.Link}}/{{.ID}}">
                                <div class="project-column-header{{if $canWriteProject}} tw-cursor-grab{{end}}">
                                        <div class="ui circular label project-column-issue-count">
                                                {{.NumIssues ctx}}
index 21e2aee0a2345e57b82c1f50d2d518839c94b772..74e8222a342ad27627be265431b9dd164a8ce630 100644 (file)
@@ -9,6 +9,7 @@
 .project-column {
   background-color: var(--color-project-board-bg) !important;
   border: 1px solid var(--color-secondary) !important;
+  border-radius: var(--border-radius);
   margin: 0 0.5rem !important;
   padding: 0.5rem !important;
   width: 320px;