mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 14:49:29 +08:00

There is currently only one scenario when both the composer and a user card would be present at the same time: if you have the composer open and then you click on something outside it that triggers a card. Which implies intent to see the card (unobstructed by the composer 😉) The reverse doesn't happen because opening the composer would close an existing user card. In theory there's also displaying a user card by clicking on a mention in composer's preview but that functionality is currently broken (and this PR is a prerequisite 😉) --- I changed `.user-card, .group-card` to `.fk-d-menu[data-identifier="card"]` because that regressed when we moved user cards to float-kit – they are nested inside `.fk-d-menu` so its `z-index` is now important (effectively the cards had `z-index: z("dropdown")` instead of `z("usercard")`)