mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 16:22:42 +00:00
Put tags in individual spans
This commit is contained in:
@@ -106,7 +106,8 @@ const BrewItem = createClass({
|
|||||||
<div className='info'>
|
<div className='info'>
|
||||||
{brew.tags ? <>
|
{brew.tags ? <>
|
||||||
<span className='brewTags' title={`Tags:\n${brew.tags.join('\n')}`}>
|
<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>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
</> : <></>
|
</> : <></>
|
||||||
|
|||||||
@@ -36,6 +36,14 @@
|
|||||||
line-height : 1.5em;
|
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{
|
&:hover{
|
||||||
.links{
|
.links{
|
||||||
opacity : 1;
|
opacity : 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user