Fix review code comment avatar alignment#33031
Conversation
ead17bb to
71f704e
Compare
|
Sorry, did not see approval before force push, just small update for redundancy (functionally same I think) |
|
I do no think this change is Are all edge cases covered? |
I think cases needing to consider are combination of
|
|
One more thing, by reading code, The rendered content is always For example, if you edit the review's content and save, the |
|
Maybe it should be as simple as: Because the "review" doesn't affect the "Content" rendering. |
Good catch, thankyou. I guess Tested and seems fine for edge cases |
Fixes go-gitea#33017 Avatar should only have offset if the `Comment` has `Content` or `Attachment` to align with the speech bubble. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* giteaofficial/main: Refactor pagination (go-gitea#33037) Test webhook email (go-gitea#33033) Fix review code comment avatar alignment (go-gitea#33031) Fix templating in pull request comparison (go-gitea#33025) Refactor tests (go-gitea#33021) [skip ci] Updated translations via Crowdin always show assignees on right (go-gitea#33006) fix toggle commit body button ui when latest commit message is long (go-gitea#32997) Fix and/or comment some legacy CSS problems (go-gitea#33015) Refactor comment history and fix content edit (go-gitea#33018) Fix bug on activities (go-gitea#33008) Refactor arch route handlers (go-gitea#32993) fix scoped label ui when contains emoji (go-gitea#33007) [skip ci] Updated translations via Crowdin De-emphasize signed commits (go-gitea#31160) Fix eslint (go-gitea#33002) Fix Agit pull request permission check (go-gitea#32999) Support for email addresses containing uppercase characters when activating user account (go-gitea#32998)
Fixes #33017
Avatar should only have offset if the
CommenthasContentorAttachmentto align with the speech bubble:Otherwise, it should align with the timeline event badge.
Issue occurs when a comment is posted with
Review.CodeCommentsbut noContent.Can be fixed by simply checking
ContentexistsBefore:

After:
