0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 03:42:38 +00:00

Merge pull request #1606 from G-Ambatte/rearrangeBrewItemMetaData

Rearrange BrewItem metadata items - put `authors` first on it's own line
This commit is contained in:
Trevor Buckner
2021-09-14 15:11:01 -04:00
committed by GitHub
2 changed files with 5 additions and 6 deletions

View File

@@ -110,6 +110,10 @@ const BrewItem = createClass({
</div> </div>
<hr /> <hr />
<div className='info'> <div className='info'>
<span title={`Authors:\n${brew.authors.join('\n')}`}>
<i className='fas fa-user'/> {brew.authors.join(', ')}
</span>
<br />
<span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}> <span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}>
<i className='fas fa-eye'/> {brew.views} <i className='fas fa-eye'/> {brew.views}
</span> </span>
@@ -122,10 +126,6 @@ const BrewItem = createClass({
<i className='fas fa-sync-alt' /> {moment(brew.updatedAt).fromNow()} <i className='fas fa-sync-alt' /> {moment(brew.updatedAt).fromNow()}
</span> </span>
{this.renderGoogleDriveIcon()} {this.renderGoogleDriveIcon()}
<br />
<span title={`Authors:\n${brew.authors.join('\n')}`}>
<i className='fas fa-user'/> {brew.authors.join(', ')}
</span>
</div> </div>
<div className='links'> <div className='links'>

View File

@@ -27,12 +27,11 @@
.info{ .info{
position: initial; position: initial;
bottom: 2px; bottom: 2px;
margin-bottom: 4px;
font-family : ScalySans; font-family : ScalySans;
font-size : 1.2em; font-size : 1.2em;
&>span{ &>span{
display : float;
margin-right : 12px; margin-right : 12px;
line-height : 1.5em;
} }
} }
&:hover{ &:hover{