Skip to content

Commit

Permalink
fix(BurnDashboard): Alignment and capitalization (#318)
Browse files Browse the repository at this point in the history
* Fix alignment in burn section

* Remove trailing seperator and rounded corners at the end of burn category gauge

* Make all category labels lower case except acronyms
  • Loading branch information
ckoopmann authored Feb 14, 2024
1 parent 1872c32 commit 6035345
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/mainsite/api/burn-categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ export const categoryId = [
export type CategoryId = typeof categoryId[number];

export const categoryDisplayMap: Record<CategoryId, string> = {
"l1-bridge": "L1 Bridge",
"l1-bridge": "L1 bridge",
cex: "CEX",
defi: "DeFi",
gaming: "Gaming",
defi: "defi",
gaming: "gaming",
l1: "L1",
l2: "L2",
mev: "MEV",
misc: "Misc (CEX, memecoins, etc)",
misc: "misc (CEX, memecoins, etc)",
nft: "NFTs",
transfers: "ETH Transfers",
creations: "Contract creations",
woof: "Woof",
transfers: "ETH transfers",
creations: "contract creations",
woof: "woof",
};

export const getIsKnownCategory = (u: unknown): u is CategoryId =>
Expand Down
5 changes: 3 additions & 2 deletions src/mainsite/components/BurnCategoryWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,10 @@ const CategorySegmentItem: FC<{
}> = ({ isLast, category, isFirst }) => (
<>
<CategorySegment
rounded={isFirst ? "left" : isLast ? "right" : undefined}
rounded={isFirst ? "left" : undefined}
{...category}
/>
<div className="z-10 w-0.5 h-2 bg-slateus-500"></div>
{!isLast && <div className="z-10 w-0.5 h-2 bg-slateus-500"></div>}
</>
);

Expand Down Expand Up @@ -574,6 +574,7 @@ const BurnCategoryWidget: FC<Props> = ({ onClickTimeFrame, timeFrame }) => {

return (
<BurnGroupBase
backgroundClassName="h-[508px]"
onClickTimeFrame={onClickTimeFrame}
title="burn categories"
timeFrame={timeFrame}
Expand Down
4 changes: 2 additions & 2 deletions src/mainsite/components/BurnRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ const BurnRecords: FC<Props> = ({ onClickTimeFrame, timeFrame}) => {
<div
className={`
mt-4 -mr-3 flex
h-60 flex-col
h-72 flex-col
gap-y-6
overflow-y-auto md:h-64
overflow-y-auto md:h-72
${scrollbarStyles["styled-scrollbar-vertical"]}
${scrollbarStyles["styled-scrollbar"]}
`}
Expand Down

0 comments on commit 6035345

Please sign in to comment.