# 关闭聊天

**URL:** https://meta.discourse.org/t/close-a-chat/297444
**Category:** UX
**Tags:** chat, tablet
**Created:** [2024年三月1日 10:55 UTC](https://meta.discourse.org/t/close-a-chat/297444 "2024-03-01T10:55:38Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [2026年八月29日 19:16 UTC](https://meta.discourse.org/t/close-a-chat/297444/11 "2026-08-29T19:16:29Z")

</div>

我计划本周合并这个 PR，它应该能解决所报告的平板设备问题。

> <https://github.com/discourse/discourse/pull/43030>
>
> Previously, there was no reliable way to close or leave a chat channel on a tabl…et (touch + desktop view): the leave button required hover, the long-press menu only worked in mobile view, and the sidebar channel menu was hidden on all touch devices.
> 
> On touch devices that can't hover (\`@media (hover: none)\`) in desktop view, the leave button and the sidebar channel menu button are now always visible instead of hover-revealed, and long-press opens the channel menu. Swipe stays limited to the mobile layout, and narrow mobile view is untouched. The sidebar button had been hidden on touch (#41368, earlier #36969) so rows could be tapped to navigate without the hover reveal in the way. As a plainly visible button, row taps still navigate and the menu opens only from the button.
> 
> Reported in https://meta.discourse.org/t/close-a-chat/297444

---

_[View the full topic](https://meta.discourse.org/t/close-a-chat/297444)._
