From 0ffd6c129a955637b270bc8840fa2f3e1ee9dc3b Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Sun, 2 Oct 2022 11:55:47 -0700 Subject: [PATCH] Make small embeds into cards (#976) * Fix embed style (adjust input, strikethrough) * Turn small embeds into contract cards * Use media query instead of conditional render * Open embed card clicks in new tab --- web/components/amount-input.tsx | 4 +-- web/components/contract/contract-card.tsx | 7 ++++- web/components/contract/contract-overview.tsx | 6 +--- web/pages/embed/[username]/[contractSlug].tsx | 31 +++++++++++++++++-- 4 files changed, 37 insertions(+), 11 deletions(-) diff --git a/web/components/amount-input.tsx b/web/components/amount-input.tsx index e7c4ce2a..45c73c5e 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -38,8 +38,8 @@ export function AmountInput(props: { return ( <> -