Skip to content

Commit

Permalink
Use sats / ccs format in item details (#1805)
Browse files Browse the repository at this point in the history
* Use sats / ccs format in item details

* Use row-gap and line-height
  • Loading branch information
ekzyis authored Jan 6, 2025
1 parent c741072 commit b37a12b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 6 additions & 12 deletions components/item-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,20 +252,14 @@ function InfoDropdownItem ({ item }) {
<div>{item.createdAt}</div>
<div>cost</div>
<div>{item.cost}</div>
<div>sats</div>
<div>{item.sats - item.credits}</div>
<div>CCs</div>
<div>{item.credits}</div>
<div>comment sats</div>
<div>{item.commentSats - item.commentCredits}</div>
<div>comment CCs</div>
<div>{item.commentCredits}</div>
<div>stacked</div>
<div>{item.sats - item.credits} sats / {item.credits} ccs</div>
<div>stacked (comments)</div>
<div>{item.commentSats - item.commentCredits} sats / {item.commentCredits} ccs</div>
{me && (
<>
<div>sats from me</div>
<div>{item.meSats - item.meCredits}</div>
<div>CCs from me</div>
<div>{item.meCredits}</div>
<div>from me</div>
<div>{item.meSats - item.meCredits} sats / {item.meCredits} ccs</div>
<div>downsats from me</div>
<div>{item.meDontLikeSats}</div>
</>
Expand Down
2 changes: 2 additions & 0 deletions components/item.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ a.link:visited {
display: grid;
grid-template-columns: auto auto;
column-gap: 1rem;
line-height: 1.25;
row-gap: 0.75rem;
}

/* .itemJob .hunk {
Expand Down

0 comments on commit b37a12b

Please sign in to comment.