mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-15 22:29:04 +02:00
The TriggerRow's outer flex uses `items-start`, which made sense back when every trigger only had one row of content (label + maybe a cron expression). Once #2774 added the URL action row to webhook triggers (Copy + Rotate buttons sitting on a second line inside the inner column), the trash button stayed pinned to the top-right of the outer flex — it visibly floats above the URL action buttons instead of lining up with them, which reads as a layout glitch. Move the trash button into the URL action row for webhook triggers so all three action buttons (Copy, Rotate, Delete) share one flex container and align by construction. Schedule and API triggers — which have no URL row — keep the trash button pinned top-right (their bodies are short enough that the top corner reads as "the row's right end"). Extract a `deleteButton` const so the JSX isn't duplicated, and add the existing `delete_dialog.confirm` i18n string as the title attribute for consistency with the other action buttons (Copy / Rotate already have hover titles). No behavioural change — same click handler, same confirm dialog.