0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 09:32:51 +00:00

Add Last Updated field and nudge styling

This commit is contained in:
G.Ambatte
2023-03-15 11:46:27 +13:00
parent a3f93c2602
commit 1126481d53
3 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
const React = require('react');
const createClass = require('create-react-class');
const _ = require('lodash');
const Moment = require('moment');
const Nav = require('naturalcrit/nav/nav.jsx');
@@ -54,6 +55,8 @@ const MetadataNav = createClass({
<p>{this.getTags()}</p>
<h4>Systems</h4>
<p>{this.getSystems()}</p>
<h4>Last Updated</h4>
<p>{Moment(this.props.brew.updatedAt).fromNow()}</p>
</div>;
},

View File

@@ -175,9 +175,9 @@
}
.dropdown{
position : absolute;
top : 28px;
top : 18px;
left : 0px;
z-index : 10000;
z-index : -1;
width : 100%;
max-height : ~"calc(100vh - 28px)";
background-color : #333;
@@ -185,7 +185,7 @@
flex-flow: row wrap;
justify-content: flex-start;
align-content: baseline;
padding: 0px 10px;
padding: 10px 10px 0px;
border-radius: 5px;
h4{
display: block;

View File

@@ -2,6 +2,7 @@
.navContent .navSection.titleSection {
flex-grow: 1;
justify-content: center;
z-index: 2;
}
.content{
overflow-y : hidden;