> maybe we can remove "${type}-placeholder" here ? instead put "${type}-attachment" in the external `<div>`, and use this to style both the placeholder and the file name div ?

That would work fine in the message thread, but not in the Compose area where the « external `<div>` » is just an iframe — we can’t use it as a CSS selector.