Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/app/components/Address/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const Address = ({
const availableWidth = useMemo(() => {
if (width) {
if (orientation === "horizontal") {
return width - (walletName ? aliasWidth + 8 : 0) - (showCopyButton ? 22 : 0);
return width - (walletName ? aliasWidth + 8 : 0) - (showCopyButton ? 8 : 0);
} else {
return width;
}
Expand Down Expand Up @@ -148,7 +148,12 @@ export const Address = ({
/>
</AddressWrapper>
{showCopyButton && (
<Clipboard variant="icon" data={address} tooltip={t("COMMON.COPY_ADDRESS")}>
<Clipboard
variant="icon"
data={address}
tooltip={t("COMMON.COPY_ADDRESS")}
iconButtonClassName="flex items-center"
>
<Icon
name="Copy"
className="text-theme-secondary-700 hover:text-theme-primary-700 dim:text-theme-dim-200 dim:hover:text-theme-dim-50 dark:text-theme-dark-200 dark:hover:text-theme-dark-50"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const TokenDetailSidepanel = ({
address={walletToken.token().address()}
showCopyButton
walletNameClass="text-theme-text text-sm leading-[17px] sm:leading-5 sm:text-base"
wrapperClass="justify-end sm:justify-start"
wrapperClass="justify-end sm:justify-start max-w-[26.25rem]"
addressClass={cn(
"text-sm leading-[17px] sm:leading-5 sm:text-base w-full w-3/4",
)}
Expand Down
Loading