From 65fc2d1b83182134610558cbea980e18ec815a93 Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Mon, 20 Feb 2023 07:07:46 +0800 Subject: [PATCH] Fix avatar misalignment (#22955) Fix #22818. | Before | After | | ---- | ---- | | | | | | | --------- Co-authored-by: Lunny Xiao --- templates/repo/issue/view_content/pull.tmpl | 2 +- web_src/less/_explore.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index 862d5d9a1b..cbcc163df1 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -13,7 +13,7 @@ {{avatar $.Context .User}} {{end}} - + {{if .User}} {{.User.GetDisplayName}} {{else if .Team}} diff --git a/web_src/less/_explore.less b/web_src/less/_explore.less index 5a41f8dc55..5caf21d417 100644 --- a/web_src/less/_explore.less +++ b/web_src/less/_explore.less @@ -69,6 +69,7 @@ .ui.user.list { .item { padding-bottom: 25px; + display: flex; &:not(:first-child) { border-top: 1px solid var(--color-secondary); @@ -78,6 +79,7 @@ img.ui.avatar { width: 40px; height: 40px; + margin-right: 10px; } .description {