0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 05:22:38 +00:00

minor changes

This commit is contained in:
Víctor Losada Hernández
2024-01-27 16:24:45 +01:00
parent 756ced088c
commit ae4e1b55e6
2 changed files with 6 additions and 2 deletions

View File

@@ -100,6 +100,8 @@ body {
background-color: #333;
padding: 8px 10px;
z-index: 1000;
font-family: 'Open Sans';
&:has(p:empty) {
display: none;
}

View File

@@ -111,6 +111,8 @@ const BrewItem = createClass({
brew.tags = brew.tags?.filter((tag)=>tag); //remove tags that are empty strings
}
const dateFormatString = 'YYYY-MM-DD HH:mm:ss';
const authors = brew.authors || 'No authors';
return <div className='brewItem'>
{brew.thumbnail &&
@@ -134,8 +136,8 @@ const BrewItem = createClass({
</div>
</> : <></>
}
<span title={`Authors:\n${brew.authors?.join('\n')}`}>
<i className='fas fa-user'/> {brew.authors.map((item) => <a href={`/user/${item}`}>{item}</a>)}
<span title={`Authors:\n${authors?.join('\n')}`}>
<i className='fas fa-user'/> {authors.map((item) => <a href={`/user/${item}`}>{item}</a>)}
</span>
<br />
<span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}>