# 如何始终显示侧边栏作为菜单面板？

**URL:** <https://meta.discourse.org/t/how-to-always-show-sidebar-as-menu-panel/248859>\
**Category:** Development\
**Created:** [2022 年12 月 13 日 22:21 UTC](https://meta.discourse.org/t/how-to-always-show-sidebar-as-menu-panel/248859 "2022-12-13T22:21:15Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

作者： ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)\
发布日期： [2022 年12 月 21 日 10:28 UTC](https://meta.discourse.org/t/how-to-always-show-sidebar-as-menu-panel/248859/5 "2022-12-21T10:28:10Z")

</div>

我喜欢这个功能如何适用于整页布局，提供一个宽敞的侧边栏菜单而不会破坏布局：

不幸的是，我意识到它还会将用户菜单更改为始终滑入。这体验不太好。我猜解耦这种行为会变得更复杂？

顺便说一句，我看到用户菜单面板有类：  
`.user-menu.revamped.menu-panel.slide-in`  
但侧边栏菜单面板只有类：  
`.revamped.menu-panel.slide-in`  
我认为在那里添加一个专用的类 `.sidebar-menu` 也会有帮助。

---

_[View the full topic](https://meta.discourse.org/t/how-to-always-show-sidebar-as-menu-panel/248859)._
