# 自定义页眉链接未遵守 'vdo' 设置

**URL:** https://meta.discourse.org/t/custom-header-links-not-respecting-vdo-setting/314477
**Category:** Bug
**Tags:** custom-header-links
**Created:** [2024年六月27日 20:57 UTC](https://meta.discourse.org/t/custom-header-links-not-respecting-vdo-setting/314477 "2024-06-27T20:57:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [2024年六月27日 20:57 UTC](https://meta.discourse.org/t/custom-header-links-not-respecting-vdo-setting/314477/1 "2024-06-27T20:57:23Z")

</div>

我遇到了一个问题，即在激活移动视图时，标题链接没有隐藏。这在我的上一次 Discourse 更新之前一直有效。现在标题链接一直可见，但仍设置为“vdo”。有什么想法吗？

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [2024年七月1日 15:39 UTC](https://meta.discourse.org/t/custom-header-links-not-respecting-vdo-setting/314477/2 "2024-07-01T15:39:46Z")

</div>

我今天玩了一下。

在 Discourse 版本 [b618d08d36](https://github.com/discourse/discourse/commits/b618d08d36969a70aa43fbb402d02bbed353fbc1) 中它仍然有效。菜单项都设置为 `vdo`，并在布局更改为移动版本时消失。在今天的 Discourse 版本 [88d259b73a](https://github.com/discourse/discourse/commits/88d259b73add0f51fbf231a05dda474475811262) 中，菜单项的参数是 `vdo` 还是 `vdm` 并不重要——它总是显示。这导致站点图标不再可见，并且标题栏右侧的元素也不可见。

对此有什么想法吗？我很乐意提供更多细节，但目前我不知道什么可能有趣或重要。 🙂

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [2024年七月1日 16:41 UTC](https://meta.discourse.org/t/custom-header-links-not-respecting-vdo-setting/314477/3 "2024-07-01T16:41:08Z")

</div>

感谢 @JammyDodger 将此内容拆分为新主题。

我再多玩了一下……

……并在我的移动设备（Android 和 iOS 手机）上打开了 discourse 实例。没有菜单项可见！

该功能似乎已不再存在，该功能会在桌面浏览器窗口变小时隐藏菜单项，直到激活移动视图。

在我看来，应该再次添加此功能，因为所有其他组件仍然以这种方式工作，并且在桌面浏览器中也激活了移动视图。

但对于“普通”用户来说，一切仍然按预期工作。
