Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
fix: improve header
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Aug 13, 2019
1 parent 2e82a87 commit 3926a98
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Cat/Cat.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "../variables";

.cat {
.card-header {
position: relative;
Expand All @@ -19,16 +21,24 @@
margin: 10px;
}
div {
text-align: left;
display: flex;
justify-content: space-between;
flex-direction: column;
@media (min-width: $mobile-breakpoint) {
display: grid;
grid-template: auto / 1fr 1fr 2fr;
}
font-size: 85%;
opacity: 0.75;
span.reportedTime {
font-size: 85%;
opacity: 0.75;
text-align: right;
}
padding-top: 0.5rem;
& + div {
margin-top: 0.5rem;
border-top: 1px solid #dcdcdc;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Cat/Cat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ const ShowCat = ({
<BatteryIcon />
{reported.bat.v.value / 1000}V
</span>
<span />
<ReportedTime
receivedAt={reported.bat.v.receivedAt}
reportedAt={new Date(reported.bat.ts.value)}
Expand Down

0 comments on commit 3926a98

Please sign in to comment.