From e8509ddf505817a65b8c1f15282a08e4b20cbecc Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 2 Jan 2024 17:29:56 -0500 Subject: [PATCH] FIX: github onebox styles for commits (#25098) --- .../stylesheets/common/base/onebox.scss | 5 +++++ .../templates/githubpullrequest.mustache | 20 ++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss index 7010b3082fe..5501a927c84 100644 --- a/app/assets/stylesheets/common/base/onebox.scss +++ b/app/assets/stylesheets/common/base/onebox.scss @@ -480,6 +480,11 @@ pre.onebox code { .github-info-container { width: 100%; overflow-x: hidden; + > span { + // TODO: remove in a few months + // replaced by .github-info in new commit oneboxes + grid-area: info; + } } .github-info { diff --git a/lib/onebox/templates/githubpullrequest.mustache b/lib/onebox/templates/githubpullrequest.mustache index 5868ba2e823..520c02d4429 100644 --- a/lib/onebox/templates/githubpullrequest.mustache +++ b/lib/onebox/templates/githubpullrequest.mustache @@ -29,15 +29,17 @@ {{commit.message.lines.first}} - - Commit by - - {{author.login}} - {{author.login}} - - in - {{title}} - +
+ + Commit by + + {{author.login}} + {{author.login}} + + in + {{title}} + +
{{/commit}} {{#comment}}