From b0f18726a34edeb47b6442ce06ebee102b9c8a83 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 12 Feb 2023 11:19:09 +0800 Subject: [PATCH] Fix milestone title font problem (#22863) Replace #22853 since it's closed, and actually there are 2 places need to be fixed. ~~Follow @fsologureng 's suggestion to keep the `` tags.~~ Update: from fsologureng: this doesn't change anything from a11y's point of view. So I think this PR could be fine to fix the UI looking problems as a quick patch, then defer the a11y problems to new PRs together. Before: the font-size is too large. After: it seems better. ![image](https://user-images.githubusercontent.com/2114189/218266257-fc2d5872-9e96-4c6a-87ea-f27531ac15c0.png) ![image](https://user-images.githubusercontent.com/2114189/218266247-efc09d83-405f-4495-967a-30d9744134ce.png) Co-authored-by: Lunny Xiao --- templates/repo/issue/milestones.tmpl | 4 ++-- templates/user/dashboard/milestones.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index 0d0a18b631..4bfd04c782 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -62,9 +62,9 @@ {{range .Milestones}}
  • -

    +

    {{svg "octicon-milestone" 16 "mr-3"}}{{.Name}} -

    +
    {{.Completeness}}% diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index 736d703ee8..907dd6f0ee 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -81,10 +81,10 @@ {{range .Milestones}}
  • -

    +

    {{.Repo.FullName}} {{svg "octicon-milestone" 16 "mr-3"}}{{.Name}} -

    +
    {{.Completeness}}%