From 06557a75db50b9faf8e253b2a284e79bd20b5fb3 Mon Sep 17 00:00:00 2001 From: HesterG <hestergong@gmail.com> Date: Mon, 12 Jun 2023 17:36:08 +0800 Subject: [PATCH] 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"> --- templates/repo/actions/runs_list.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/repo/actions/runs_list.tmpl b/templates/repo/actions/runs_list.tmpl index fdef2e644..5f444f31f 100644 --- a/templates/repo/actions/runs_list.tmpl +++ b/templates/repo/actions/runs_list.tmpl @@ -1,16 +1,16 @@ <div class="issue list gt-m-0"> {{range .Runs}} - <li class="item gt-df gt-py-3 gt-ab"> - <div class="issue-item-left gt-df gt-mr-2"> + <li class="item gt-df gt-py-4"> + <div class="issue-item-left issue-item-icon gt-df gt-items-start"> {{template "repo/actions/status" (dict "status" .Status.String "locale" $.locale)}} </div> <div class="issue-item-main action-item-main gt-f1 gt-fc gt-df gt-mr-3"> - <div class="issue-item-top-row"> - <a class="index gt-ml-0 gt-mr-2" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}"> + <div class="issue-item-top-row gt-mb-2"> + <a class="index gt-no-underline title action-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}"> {{- .Title -}} </a> </div> - <div class="desc issue-item-bottom-row gt-df gt-ac gt-fw gt-my-1"> + <div class="desc issue-item-bottom-row gt-df gt-ac gt-fw"> <b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>: {{$.locale.Tr "actions.runs.commit"}} <a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>{{$.locale.Tr "actions.runs.pushed_by"}} {{.TriggerUser.GetDisplayName}} <span class="ui label">