Skip to content

Commit 298d05d

Browse files
GiteaBotsilverwind
andauthored
Remove .segment from .project-column (#31204) (#31239)
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: #31129 Co-authored-by: silverwind <me@silverwind.io>
1 parent 85a8176 commit 298d05d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/projects/view.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<div id="project-board">
6767
<div class="board {{if .CanWriteProjects}}sortable{{end}}"{{if .CanWriteProjects}} data-url="{{$.Link}}/move"{{end}}>
6868
{{range .Columns}}
69-
<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}}">
69+
<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}}">
7070
<div class="project-column-header{{if $canWriteProject}} tw-cursor-grab{{end}}">
7171
<div class="ui circular label project-column-issue-count">
7272
{{.NumIssues ctx}}

web_src/css/features/projects.css

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
.project-column {
1010
background-color: var(--color-project-board-bg) !important;
1111
border: 1px solid var(--color-secondary) !important;
12+
border-radius: var(--border-radius);
1213
margin: 0 0.5rem !important;
1314
padding: 0.5rem !important;
1415
width: 320px;

0 commit comments

Comments
 (0)