Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(console): make copier a block element to preserve box size #2371

Merged
merged 1 commit into from
Jun 7, 2023
Merged
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
48 changes: 26 additions & 22 deletions apps/console/app/routes/apps/$clientId/domain-wip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,17 +319,19 @@ const DNSRecord = ({ title, validated, name, value, type }: DNSRecordProps) => {
>
{name}
</Text>
<Copier
value={name}
color="text-gray-500"
onCopy={() =>
toast(
ToastType.Success,
{ message: `${title} ${type} name copied to clipboard!` },
{ duration: 2000 }
)
}
/>
<div>
<Copier
value={name}
color="text-gray-500"
onCopy={() =>
toast(
ToastType.Success,
{ message: `${title} ${type} name copied to clipboard!` },
{ duration: 2000 }
)
}
/>
</div>
</div>
</div>
</div>
Expand All @@ -347,17 +349,19 @@ const DNSRecord = ({ title, validated, name, value, type }: DNSRecordProps) => {
>
{value}
</Text>
<Copier
value={value}
color="text-gray-500"
onCopy={() =>
toast(
ToastType.Success,
{ message: `${title} ${type} value copied to clipboard!` },
{ duration: 2000 }
)
}
/>
<div>
<Copier
value={value}
color="text-gray-500"
onCopy={() =>
toast(
ToastType.Success,
{ message: `${title} ${type} value copied to clipboard!` },
{ duration: 2000 }
)
}
/>
</div>
</div>
</div>
</div>
Expand Down