mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 13:12:40 +00:00
minor changes
This commit is contained in:
@@ -100,6 +100,8 @@ body {
|
|||||||
background-color: #333;
|
background-color: #333;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
|
||||||
&:has(p:empty) {
|
&:has(p:empty) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,6 +111,8 @@ const BrewItem = createClass({
|
|||||||
brew.tags = brew.tags?.filter((tag)=>tag); //remove tags that are empty strings
|
brew.tags = brew.tags?.filter((tag)=>tag); //remove tags that are empty strings
|
||||||
}
|
}
|
||||||
const dateFormatString = 'YYYY-MM-DD HH:mm:ss';
|
const dateFormatString = 'YYYY-MM-DD HH:mm:ss';
|
||||||
|
const authors = brew.authors || 'No authors';
|
||||||
|
|
||||||
|
|
||||||
return <div className='brewItem'>
|
return <div className='brewItem'>
|
||||||
{brew.thumbnail &&
|
{brew.thumbnail &&
|
||||||
@@ -134,8 +136,8 @@ const BrewItem = createClass({
|
|||||||
</div>
|
</div>
|
||||||
</> : <></>
|
</> : <></>
|
||||||
}
|
}
|
||||||
<span title={`Authors:\n${brew.authors?.join('\n')}`}>
|
<span title={`Authors:\n${authors?.join('\n')}`}>
|
||||||
<i className='fas fa-user'/> {brew.authors.map((item) => <a href={`/user/${item}`}>{item}</a>)}
|
<i className='fas fa-user'/> {authors.map((item) => <a href={`/user/${item}`}>{item}</a>)}
|
||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}>
|
<span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}>
|
||||||
|
|||||||
Reference in New Issue
Block a user