From 29c00eb1ed13fbcd2a5e493d075c2bbd0e2a26f7 Mon Sep 17 00:00:00 2001 From: Gusted Date: Tue, 25 Oct 2022 11:11:49 +0000 Subject: [PATCH] Improve code comment review on mobile (#21461) - Fix placement of avatar image, this was not placed in the `comment-header-left` and add CSS to cover the limiting of width+height of avatar for code-review comment on "Files changed" page. This fixes the big noticeable avatar issue. - Apply `margin-bottom` to the "next" button, so it's consistent with the "previous" button. - Make sure the "next"/"previous" start at `flex-start` on mobile and not off-screen at `flex-end`. As well force them to have `flex: 1` so they won't overflow on x-asis. This also requires the `width: 100%` for the `.ui.buttons` div. - Resolves #20074 ### Before
### After
Co-authored-by: Lunny Xiao Co-authored-by: silverwind --- templates/repo/diff/conversation.tmpl | 2 +- templates/repo/diff/section_split.tmpl | 8 +++--- templates/repo/diff/section_unified.tmpl | 2 +- web_src/js/features/repo-issue.js | 6 ++-- web_src/less/_repository.less | 6 +++- web_src/less/_review.less | 36 +++++++++++++++++++----- web_src/less/helpers.less | 1 + 7 files changed, 44 insertions(+), 17 deletions(-) diff --git a/templates/repo/diff/conversation.tmpl b/templates/repo/diff/conversation.tmpl index 781e1f6819..204a2146f8 100644 --- a/templates/repo/diff/conversation.tmpl +++ b/templates/repo/diff/conversation.tmpl @@ -26,7 +26,7 @@ {{template "repo/diff/comments" dict "root" $ "comments" .comments}} -
+