0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-14 12:52:42 +00:00
This commit is contained in:
Trevor Buckner
2022-09-06 01:00:38 -04:00
parent cae1bc9f0a
commit e0d8846c44
2 changed files with 9 additions and 8 deletions

View File

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

View File

@@ -29,7 +29,7 @@
.info{ .info{
position: initial; position: initial;
bottom: 2px; bottom: 2px;
font-family : ScalySans; font-family : ScalySansRemake;
font-size : 1.2em; font-size : 1.2em;
&>span{ &>span{
margin-right : 12px; margin-right : 12px;
@@ -38,11 +38,13 @@
} }
.brewTags span { .brewTags span {
background-color: #c8ac6e3b; background-color: #c8ac6e3b;
margin-left: 2px; margin: 2px;
border-radius: 0.5em; padding: 2px;
padding: 1px 4px;
border: 1px solid #c8ac6e; border: 1px solid #c8ac6e;
border-radius: 4px;
white-space: nowrap; white-space: nowrap;
display: inline-block;
font-weight: bold;
} }
&:hover{ &:hover{
.links{ .links{