Merge pull request #1773 from Pallavikumarimdb/fix/long-copy-box

Fix text overflow in CopyToClipboard by setting a max width
This commit is contained in:
Owen Schwartz
2025-10-29 14:11:27 -07:00
committed by GitHub

View File

@@ -126,9 +126,11 @@ export default function InviteUserForm({
<div> <div>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
{t("type")} <span>{t("type")}</span>
<span className="px-2 py-1 rounded-md bg-secondary"><CopyToClipboard text={string} /></span> <div className="px-2 py-1 rounded-md bg-secondary max-w-[250px] overflow-x-auto whitespace-nowrap scrollbar-thin scrollbar-thumb-muted scrollbar-track-transparent">
{t("toConfirm")} <CopyToClipboard text={string} />
</div>
<span>{t("toConfirm")}</span>
</div> </div>
</div> </div>
</div> </div>