Skip to content

Commit 06557a7

Browse files
authored
Adjust style for action run list (align icons, adjust padding) (#25170)
Main changes: - Moved the icon into `action-item-main`, and make it `position: absolute` to allow add margin it to align with `issue-item-top-row`. - Adjusted padding and color of texts. # Before <img width="721" alt="Screen Shot 2023-06-09 at 17 04 38" src="https://github.com/go-gitea/gitea/assets/17645053/3fc00e94-bcd4-4e06-b1d8-93be0576dbc3"> # After <img width="1421" alt="Screen Shot 2023-06-09 at 18 32 47" src="https://github.com/go-gitea/gitea/assets/17645053/c2a0f9df-cac4-4197-9cbd-6c16dfef215b"> On hover: <img width="1431" alt="Screen Shot 2023-06-09 at 18 32 54" src="https://github.com/go-gitea/gitea/assets/17645053/d0ab6fde-9722-4d76-831b-163fd6a1f560">
1 parent 34498e6 commit 06557a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/repo/actions/runs_list.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<div class="issue list gt-m-0">
22
{{range .Runs}}
3-
<li class="item gt-df gt-py-3 gt-ab">
4-
<div class="issue-item-left gt-df gt-mr-2">
3+
<li class="item gt-df gt-py-4">
4+
<div class="issue-item-left issue-item-icon gt-df gt-items-start">
55
{{template "repo/actions/status" (dict "status" .Status.String "locale" $.locale)}}
66
</div>
77
<div class="issue-item-main action-item-main gt-f1 gt-fc gt-df gt-mr-3">
8-
<div class="issue-item-top-row">
9-
<a class="index gt-ml-0 gt-mr-2" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
8+
<div class="issue-item-top-row gt-mb-2">
9+
<a class="index gt-no-underline title action-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
1010
{{- .Title -}}
1111
</a>
1212
</div>
13-
<div class="desc issue-item-bottom-row gt-df gt-ac gt-fw gt-my-1">
13+
<div class="desc issue-item-bottom-row gt-df gt-ac gt-fw">
1414
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>: {{$.locale.Tr "actions.runs.commit"}}
1515
<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>{{$.locale.Tr "actions.runs.pushed_by"}} {{.TriggerUser.GetDisplayName}}
1616
<span class="ui label">

0 commit comments

Comments
 (0)