0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 02:22:49 +00:00

Adjust styling for unusual browser widths

This commit is contained in:
G.Ambatte
2023-03-15 13:46:30 +13:00
parent 1126481d53
commit bd4c24df46
2 changed files with 44 additions and 27 deletions

View File

@@ -47,16 +47,26 @@ const MetadataNav = createClass({
if(!this.state.showMetaWindow) return null;
return <div className='dropdown'>
<h4>Description</h4>
<p>{this.props.brew.description || 'No description.'}</p>
<h4>Authors</h4>
<p>{this.getAuthors()}</p>
<h4>Tags</h4>
<p>{this.getTags()}</p>
<h4>Systems</h4>
<p>{this.getSystems()}</p>
<h4>Last Updated</h4>
<p>{Moment(this.props.brew.updatedAt).fromNow()}</p>
<div className='row'>
<h4>Description</h4>
<p>{this.props.brew.description || 'No description.'}</p>
</div>
<div className='row'>
<h4>Authors</h4>
<p>{this.getAuthors()}</p>
</div>
<div className='row'>
<h4>Tags</h4>
<p>{this.getTags()}</p>
</div>
<div className='row'>
<h4>Systems</h4>
<p>{this.getSystems()}</p>
</div>
<div className='row'>
<h4>Last Updated</h4>
<p>{Moment(this.props.brew.updatedAt).fromNow()}</p>
</div>
</div>;
},

View File

@@ -187,23 +187,30 @@
align-content: baseline;
padding: 10px 10px 0px;
border-radius: 5px;
h4{
display: block;
box-sizing: border-box;
padding: 5px 0px;
color: #bbb;
text-align: center;
border-top: 1px solid #888;
flex-basis: 20%;
}
p{
font-family : 'Open Sans', sans-serif;
font-size : 10px;
font-weight : normal;
text-transform : initial;
padding: 5px 0;
flex-basis: 80%;
border-top: 1px solid #888;
.row{
display : flex;
flex-flow : row wrap;
width : 100%;
h4{
display : block;
box-sizing : border-box;
padding : 5px 0px;
color : #bbb;
text-align : center;
border-top : 1px solid #888;
flex-basis : 20%;
flex-grow : 1;
}
p{
font-family : 'Open Sans', sans-serif;
font-size : 10px;
font-weight : normal;
text-transform : initial;
padding : 5px 0;
flex-basis : 80%;
flex-grow : 1;
border-top : 1px solid #888;
}
}
}
}