# 将侧边栏的私人聊天部分移至频道部分下方

**URL:** https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239
**Category:** Support
**Tags:** sidebar
**Created:** [2023年九月8日 00:59 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239 "2023-09-08T00:59:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [2023年九月8日 00:59 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/1 "2023-09-08T00:59:13Z")

</div>

侧边栏的个人聊天部分不知何故出现在了我作为管理员的论坛的频道部分上方，如何将其移回原来的位置？

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/b/a/dba1135df15c4c38c319839d45a1b83d416f409f.png)

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年九月8日 01:24 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/2 "2023-09-08T01:24:24Z")

</div>

可以使用此通用 CSS 设置默认导航菜单部分的顺序：

```scss
.sidebar-section-wrapper.sidebar-section[data-section-name="categories"] {
  order: 1;
}
.sidebar-section-wrapper.sidebar-section[data-section-name="tags"] {
  order: 2;
}
.sidebar-section-wrapper.sidebar-section[data-section-name="chat-dms"] {
  order: 3;
}
.sidebar-section-wrapper.sidebar-section[data-section-name="chat-channels"] {
  order: 4;
}
.sidebar-section-wrapper.sidebar-section[data-section-name="messages"] {
  order: 5;
}

```

也可以使用我的 [导航菜单显示控件 TC](https://meta.discourse.org/t/navigation-sidebar-menu-display-control/277687/1) 来实现。

---

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [2023年九月8日 01:28 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/3 "2023-09-08T01:28:26Z")

</div>

最初是什么导致它改变的？

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年九月8日 01:30 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/4 "2023-09-08T01:30:55Z")

</div>

不知道，我没注意到它变了。我倾向于在我的论坛上更改顺序，但据我所知，默认设置是频道下方是个人聊天。在 Meta 上是默认设置，就像进入安全模式并取消选中“禁用所有客户端自定义插件”一样。

---

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [2023年九月8日 01:53 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/5 "2023-09-08T01:53:41Z")

</div>

> [@Lilly](#):
>
> 在这里，Meta 是默认设置，就像进入安全模式并取消选中 `禁用所有客户端插件自定义` 一样。

禁用主题可以解决我们网站上的问题，所以现在我们只需要找到罪魁祸首。

---

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [2023年九月8日 01:58 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/6 "2023-09-08T01:58:40Z")

</div>

> [@Lilly](#):
>
> 也可以使用我的 [导航菜单显示控件 TC](https://meta.discourse.org/t/navigation-sidebar-menu-display-control/277687/1)。

似乎是另一位管理员添加了该主题组件，我会问一下。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年九月8日 02:02 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/7 "2023-09-08T02:02:46Z")

</div>

哈哈！好了，就这样了。 😁

我想是在 TC 设置中我默认将它们弄反了，所以现在我已将组件的默认值更改为匹配。抱歉。更新组件即可修复。感谢您发现这个问题。 🙂

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [2023年九月8日 03:55 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/8 "2023-09-08T03:55:25Z")

</div>

> [@hello-smile6](#):
>
> 看起来是另一位管理员添加了这个主题组件，我会问一下。

那是我 😅

我替换了两个原始菜单修改器副本，但似乎没注意到这个切换。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年九月8日 03:57 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/9 "2023-09-08T03:57:11Z")

</div>

抱歉各位，这是我的错。我甚至都没注意到我把它们放错了顺序，尽管我在测试那个设置的时候经常移动它们。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年十月8日 03:57 UTC](https://meta.discourse.org/t/moving-the-personal-chat-section-of-the-sidebar-below-the-channels-section/278239/10 "2023-10-08T03:57:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
