0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Put tags in individual spans

This commit is contained in:
Trevor Buckner
2022-09-05 23:31:23 -04:00
parent 746e8f8a6a
commit cae1bc9f0a
2 changed files with 10 additions and 1 deletions

View File

@@ -106,7 +106,8 @@ const BrewItem = createClass({
<div className='info'>
{brew.tags ? <>
<span className='brewTags' title={`Tags:\n${brew.tags.join('\n')}`}>
<i className='fas fa-tags'/> {brew.tags.join(', ')}
<i className='fas fa-tags'/>
{brew.tags.map((tag, idx)=>{return <><span>{tag}</span>{'\n'}</>;})}
</span>
<br />
</> : <></>

View File

@@ -36,6 +36,14 @@
line-height : 1.5em;
}
}
.brewTags span {
background-color: #c8ac6e3b;
margin-left: 2px;
border-radius: 0.5em;
padding: 1px 4px;
border: 1px solid #c8ac6e;
white-space: nowrap;
}
&:hover{
.links{
opacity : 1;