Merge pull request #171 from alexef/build-details-author

Update build details - show author
This commit is contained in:
Laszlo Fogas 2021-03-19 11:30:30 +01:00 committed by GitHub
commit 5fa163d828
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 8 deletions

View file

@ -16,9 +16,15 @@ export class Details extends Component {
<section className={styles.message} style={{ whiteSpace: "pre-line" }}>
{build.message}
</section>
<section>
<div className={styles.author}>
<img src={build.author_avatar} />
<span>{build.author}</span>
</div>
<BuildTime
start={build.started_at || build.created_at}
finish={build.finished_at}

View file

@ -15,3 +15,20 @@
}
}
}
.author {
display: flex;
height: 30px;
align-items: center;
}
.author img {
border-radius: 50%;
height: 16px;
width: 16px;
margin-right: 10px;
}
.author span {
font-size: 14px;
}

View file

@ -17,7 +17,7 @@ export class Item extends Component {
return (
<div className={styles.item}>
<div className={styles.icon}>
<img src={build.author_avatar} />
<img src={build.author_avatar} title={build.author} />
</div>
<div className={styles.body}>

View file

@ -99,17 +99,17 @@
}
.icon {
margin-left: 10px;
margin-right: 20px;
max-width: 22px;
min-width: 22px;
width: 22px;
margin-left: 8px;
margin-right: 18px;
max-width: 26px;
min-width: 26px;
width: 26px;
}
.icon img {
border-radius: 50%;
height: 22px;
width: 22px;
height: 26px;
width: 26px;
}
.status {