diff --git a/src/components/ShareCard.tsx b/src/components/ShareCard.tsx index c3167aa..69e9842 100644 --- a/src/components/ShareCard.tsx +++ b/src/components/ShareCard.tsx @@ -30,19 +30,28 @@ export function ShareButton(props: { receiveString: string }) { ) } +function TruncateMiddle(props: { text: string }) { + return ( +
+ {props.text} + {props.text.length > 8 ? props.text.slice(-8) : ""} +
+ ); +} + export function StringShower(props: { text: string }) { - const [open, setOpen] = createSignal(false); - return ( - <> - -
-
{props.text}
- -
- - ) + const [open, setOpen] = createSignal(false); + return ( + <> + +
+ + +
+ + ); } export function CopyButton(props: { text?: string, title?: string }) {