Skip to content

Commit ffd0062

Browse files
modmew8lafriks
authored andcommitted
Fix checklist padding (#3460)
* Changed style of checklist in issuelist. * Adjusted padding for progressbar, updated index.css. * Fixed another wrong tab to spaces. Signed-off-by: modmew8 <[email protected]>
1 parent a264828 commit ffd0062

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/less/_repository.less

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,20 +1491,24 @@
14911491
.desc {
14921492
padding-top: 5px;
14931493
color: #999;
1494-
.progress-bar {
1495-
width: 80px;
1496-
height: 6px;
1497-
display: inline-block;
1498-
background-color: #eee;
1499-
overflow: hidden;
1500-
border-radius: 3px;
1501-
vertical-align: middle !important;
1502-
.progress {
1503-
background-color: #ccc;
1504-
display: block;
1505-
height: 100%;
1506-
}
1507-
}
1494+
.checklist {
1495+
padding-left: 5px;
1496+
.progress-bar {
1497+
margin-left: 2px;
1498+
width: 80px;
1499+
height: 6px;
1500+
display: inline-block;
1501+
background-color: #eee;
1502+
overflow: hidden;
1503+
border-radius: 3px;
1504+
vertical-align: 2px !important;
1505+
.progress {
1506+
background-color: #ccc;
1507+
display: block;
1508+
height: 100%;
1509+
}
1510+
}
1511+
}
15081512
a.milestone {
15091513
padding-left: 5px;
15101514
color: #999!important;

templates/repo/issue/list.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@
203203
{{$tasks := .GetTasks}}
204204
{{if gt $tasks 0}}
205205
{{$tasksDone := .GetTasksDone}}
206-
<span class="octicon octicon-checklist"></span> {{$tasksDone}} / {{$tasks}} <span class="progress-bar"><span class="progress" style="width:calc(100% * {{$tasksDone}} / {{$tasks}});"></span></span>
206+
<span class="checklist">
207+
<span class="octicon octicon-checklist"></span> {{$tasksDone}} / {{$tasks}} <span class="progress-bar"><span class="progress" style="width:calc(100% * {{$tasksDone}} / {{$tasks}});"></span></span>
208+
</span>
207209
{{end}}
208210
{{if .Milestone}}
209211
<a class="milestone" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.Milestone.ID}}&assignee={{$.AssigneeID}}">

templates/user/dashboard/issues.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@
9090
{{$tasks := .GetTasks}}
9191
{{if gt $tasks 0}}
9292
{{$tasksDone := .GetTasksDone}}
93-
<span class="octicon octicon-checklist"></span> {{$tasksDone}} / {{$tasks}} <span class="progress-bar"><span class="progress" style="width:calc(100% * {{$tasksDone}} / {{$tasks}});"></span></span>
93+
<span class="checklist">
94+
<span class="octicon octicon-checklist"></span> {{$tasksDone}} / {{$tasks}} <span class="progress-bar"><span class="progress" style="width:calc(100% * {{$tasksDone}} / {{$tasks}});"></span></span>
95+
</span>
9496
{{end}}
9597
</p>
9698
</li>

0 commit comments

Comments
 (0)