Skip to content

Commit e3666c6

Browse files
authored
Merge pull request #2423 from oasisprotocol/kaja/responsive-total-transaction-card
Fix Total Transactions and Latest Blocks responsive alignment
2 parents 37b750e + 5f82c6f commit e3666c6

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.changelog/2423.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix Total Transactions and Latest Blocks responsive alignment

src/app/components/TotalTransactions/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ export const TotalTransactions: FC<TotalTransactionsProps> = ({
8888
const { t } = useTranslation()
8989
const [chartDuration, setChartDuration] = useState<ChartDuration>(ChartDuration.MONTH)
9090
return (
91-
<Card variant="layout">
91+
<Card variant="layout" className="min-w-0 flex-1">
9292
<CardHeader>
93-
<CardTitle className="flex-col sm:flex-row sm:items-center sm:justify-between gap-1">
93+
<CardTitle className="flex-col flex-wrap sm:flex-row sm:items-center sm:justify-between gap-1">
9494
{title ?? <Typography variant="h3">{t('totalTransactions.header')}</Typography>}
9595

96-
<div className="md:ml-4 md:flex-1 md:text-right">
96+
<div className="lg:ml-4 md:flex-1 md:text-right">
9797
<DurationPills handleChange={setChartDuration} value={chartDuration} />
9898
</div>
9999
</CardTitle>

src/app/pages/HomePage/RecentBlocksCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const RecentBlocksCard: FC = () => {
2121
const { t } = useTranslation()
2222

2323
return (
24-
<Card variant="layout">
24+
<Card variant="layout" className="min-w-0 flex-1">
2525
<CardHeader>
2626
<CardTitle>
2727
<Typography variant="h3" className="text-lg">

0 commit comments

Comments
 (0)