From f2bd74852694d3ac2674c13d68dff1fdca7a5901 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 22 Dec 2014 18:49:19 +0100 Subject: [PATCH] Make commit first line go under branch if it's too long --- assets/scripts/app/templates/builds/show.hbs | 13 ++++++++----- assets/styles/main/summary.sass | 13 +++++++++++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/assets/scripts/app/templates/builds/show.hbs b/assets/scripts/app/templates/builds/show.hbs index f35ce981..24a45173 100644 --- a/assets/scripts/app/templates/builds/show.hbs +++ b/assets/scripts/app/templates/builds/show.hbs @@ -37,12 +37,15 @@ -
- {{build.commit.branch}} -
+
+
+ {{build.commit.branch}} this is a long branch name +
-
- - {{formatMessage build.commit.subject repoBinding=build.repo}} +
+ - {{formatMessage build.commit.subject repoBinding=build.repo}} this is a + long commit message line +
{{formatMessage build.commit.body repoBinding=build.repo pre=true}}
diff --git a/assets/styles/main/summary.sass b/assets/styles/main/summary.sass index 6838c40f..92628246 100644 --- a/assets/styles/main/summary.sass +++ b/assets/styles/main/summary.sass @@ -26,11 +26,19 @@ padding: 0 11px 0 51px position: relative min-height: 155px + padding-right: 240px background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mN4/+HDfwAJcAPPMJixRQAAAABJRU5ErkJggg=='), #fafafa background-size: 41px 100% background-repeat: no-repeat + .mainline + display: flex + width: 100% + flex-wrap: wrap + margin: 0 auto + align-items: flex-start + .request-kind opacity: 0.55 position: absolute @@ -136,10 +144,11 @@ line-height: 24px .right - margin-top: 10px - float: right width: 220px font-size: 11px + top: 10px + right: 10px + position: absolute .footer a