# Usercards upper border does not disappear on page change

**URL:** https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635
**Category:** UX
**Tags:** completed, user-card
**Created:** [May 11, 2024, 8:19am UTC](https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635 "2024-05-11T08:19:27Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [May 11, 2024, 8:19am UTC](https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635/1 "2024-05-11T08:19:27Z")

</div>

When you open the user’s profile from the usercard, there is a line afterwards. To reproduce, use a usercard which appears at the top. Otherwise, you would have to scroll to find the line.

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [May 11, 2024, 9:14am UTC](https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635/2 "2024-05-11T09:14:17Z")

</div>

I get this too. (Clicking anywhere will get rid of the line.)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [May 11, 2024, 11:24am UTC](https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635/3 "2024-05-11T11:24:24Z")

</div>

It looks like the DMenu is not fully closed until you click outside.

This is a side effect of this PR:

[https://github.com/discourse/discourse/commit/fe16633a0c018156d88530b979ee2164107c7416](https://github.com/discourse/discourse/commit/fe16633a0c018156d88530b979ee2164107c7416)

---

<div class="post-metadata">

### Author: ![Noah](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Noah](https://meta.discourse.org/u/Noah)
#### Post date: [May 27, 2024, 11:21pm UTC](https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635/5 "2024-05-27T23:21:30Z")

</div>

Also experiencing this.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [June 9, 2024, 4:28am UTC](https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635/6 "2024-06-09T04:28:38Z")

</div>

Hello 👋 Yeah, I’ve noticed this too.  
It is targetable with 🔽

```css
#user-card,
#group-card {
  &:empty {
    display: none;
  }
}

```

---

<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: [June 11, 2024, 8:55pm UTC](https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635/7 "2024-06-11T20:55:47Z")

</div>

Looks like there’s a fix incoming!

[https://github.com/discourse/discourse/commit/1ecfc397d36536795824d5b46d7687a5f76778f4](https://github.com/discourse/discourse/commit/1ecfc397d36536795824d5b46d7687a5f76778f4)

---

<div class="post-metadata">

### Author: ![cvx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cvx/32/152146_2.png) [@cvx](https://meta.discourse.org/u/cvx)
#### Post date: [June 12, 2024, 9:59pm UTC](https://meta.discourse.org/t/usercards-upper-border-does-not-disappear-on-page-change/307635/8 "2024-06-12T21:59:50Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
