An open-source, faster Devin alternative
TypeScript
fix(web): keep Copy button constant width (no shift on Copied)
Igor Zalutski1e80229f78e6
diff --git a/web/src/components/slack-connect.tsx b/web/src/components/slack-connect.tsxindex c2b7933f..6de61b07 100644--- a/web/src/components/slack-connect.tsx+++ b/web/src/components/slack-connect.tsx@@ -282,7 +282,17 @@ export function SlackConnect({) : (<Copy className="size-3.5" />)}- {copied ? 'Copied' : 'Copy manifest'}+ {/* Reserve the wider label's width (stacked grid) so the+ button — and the link beside it — don't shift when it+ flips to "Copied". */}+ <span className="grid">+ <span className="invisible col-start-1 row-start-1">+ Copy manifest+ </span>+ <span className="col-start-1 row-start-1 text-left">+ {copied ? 'Copied' : 'Copy manifest'}+ </span>+ </span></Button><ahref={manifest.create_url}