Make commit first line go under branch if it's too long

This commit is contained in:
Piotr Sarnacki 2014-12-22 18:49:19 +01:00
parent a287026aa2
commit f2bd748526
2 changed files with 19 additions and 7 deletions

View File

@ -37,12 +37,15 @@
</div>
</div>
<div class="branch" {{bind-attr title="build.commit.branch"}}>
{{build.commit.branch}}
</div>
<div class="mainline">
<div class="branch" {{bind-attr title="build.commit.branch"}}>
{{build.commit.branch}} this is a long branch name
</div>
<div class="subject">
- {{formatMessage build.commit.subject repoBinding=build.repo}}
<div class="subject">
- {{formatMessage build.commit.subject repoBinding=build.repo}} this is a
long commit message line
</div>
</div>
<pre class="body">{{formatMessage build.commit.body repoBinding=build.repo pre=true}}</pre>

View File

@ -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