# Problema de layout ao clicar em @mention dentro de um cartão de usuário

**URL:** <https://meta.discourse.org/t/layout-issue-when-you-click-on-mention-within-a-user-card/82121>\
**Category:** UX\
**Tags:** user-card\
**Created:** [Março 3, 2018, 2:45pm UTC](https://meta.discourse.org/t/layout-issue-when-you-click-on-mention-within-a-user-card/82121 "2018-03-03T14:45:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [Março 6, 2018, 5:45am UTC](https://meta.discourse.org/t/layout-issue-when-you-click-on-mention-within-a-user-card/82121/5 "2018-03-06T05:45:42Z")

</div>

This ends up being a bit more complex than a CSS fix — we wouldn’t want to raise the card position in the z-index, because then if you open a usercard and scroll without closing it (more common than linking a usercard inside a usercard), the card would always show above the header/title/nav, etc… plus right now it also scrolls you to the top of of topic, which is weird to begin with.

So this will need some additional logic… we should either just open the usercard in place of the usercard it’s being linked from (retaining the position)… or we could just say that all user links inside of a usercard link directly to the user profile page. Not sure which is easiest here.

---

_[View the full topic](https://meta.discourse.org/t/layout-issue-when-you-click-on-mention-within-a-user-card/82121)._
