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:
@@ -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 />
|
||||
</> : <></>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user