# Discourse 持久横幅

**URL:** <https://meta.discourse.org/t/discourse-persistent-banner/330575>\
**Category:** Theme component\
**Created:** [2024年十月12日 13:41 UTC](https://meta.discourse.org/t/discourse-persistent-banner/330575 "2024-10-12T13:41:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [2024年十月13日 03:30 UTC](https://meta.discourse.org/t/discourse-persistent-banner/330575/4 "2024-10-13T03:30:58Z")

</div>

干得好，Nate。 👏 🙂  
我喜欢它的简洁性

我认为主题创建者预览不起作用。 🤔

有几点建议供您参考：

- 桌面模式下存在一些布局问题，特别是如果用户使用宽屏/全屏显示器。

 ![Screenshot 2024-10-12 at 7.57.04 PM](https://global.discourse-cdn.com/meta/original/4X/6/4/c/64c9755cec68696de1e48f63acc47aa799e00a49.png)

- 如果能控制边框大小和颜色就好了。

- 也许可以提供一些布局选项，配合不同的插件出口，例如 `below-site-header` 和 `above-main-containter`？

- 虽然使用枚举列表而不是文本输入来选择颜色很方便，但这也限制了管理员使用与深色/浅色模式兼容的颜色变量，或者在十六进制颜色值方面不够灵活。

- 我建议将横幅字符串设置为文本输入设置，并添加 `textarea: true` 属性，这样您就可以得到一个用户可以扩展的多行文本框。这样可以更容易地做到这一点：

 ![Screenshot 2024-10-12 at 8.28.17 PM](https://global.discourse-cdn.com/meta/original/4X/5/1/9/5199ee7861b55fb4fb2037bd59ccf65fcba58a53.png)

 ![Screenshot 2024-10-12 at 8.27.42 PM](https://global.discourse-cdn.com/meta/original/4X/c/c/0/cc06903e79e322d39053dd4db82e5c3ce7a2c07a.png)

---

_[View the full topic](https://meta.discourse.org/t/discourse-persistent-banner/330575)._
