Same here. I can repro this on theme creator and discourse development.
@angus perhaps the component needs to be improved? In light of recent changes:
There is some strange behavior in the drop-down menu.
Broken.
Thanks @Stranik and @nexo. I’ve added support for the new event added by UX: Do not close login modal and search menu on outside mouse up even… · discourse/discourse@58fe45f · GitHub.
The theme will continue to work with older Discourse versions as well.
User and tags go off of the search modal. Could you check if this happens to your instance?
It’s probably something wrong with your other themes. Long usernames are cut off with “…” when only using this component.

Testing this theme component now and I see that once a search is executed the top of the results are getting cut off, whole element is getting shifted up or something. Anyone else seeing this?
It seems to happen even when I switch to a default theme…but @angus I don’t see this active in your sandbox at the moment so not 100% sure if it’s a bug or something weird with my setup.
我们在移动端没有空间放置搜索栏。有人见过将搜索栏直接集成在论坛内部(而不是放在页头)的情况吗?我想也可以做成页脚搜索栏。
你看过这个组件吗?
这正是我在找的。谢谢 @Johani。
我们会修改它,使其在标签页面上也能工作,目前几乎所有插件都是这样的。
我也注意到了这个问题,并提了一个包含一些更新的 PR
谢谢!已合并 ![]()
一个不错的设置是将其精确放置在标题的正中央 ![]()
嗨 @angus,
有更新主题组件的计划吗?在主题预览中,它似乎存在一些布局问题。
我认为这是一个很棒的功能,能激励用户更频繁地使用搜索功能。
希望它能起到警示这个弃用的作用。![]()
我做了一个 PR 来修复布局问题。
这个#theme-component与下面链接的组件有何不同?
嘿,不知何故,我无法将搜索栏移到标题下方。有什么建议吗?我一直在尝试将其嵌套在我创建的 after header html 的一个 div 类中
谢谢,
雅各布
您好,
感谢您提供的出色组件。
如何更改搜索框的颜色?
我想将其更改为白色。
谢谢
![]()
我总是惊喜地发现这个组件基本还能用
我做了一些更新,让它更符合最新的 Discourse。
不确定你是否在使用这个组件,但如果你在使用,请将此添加到你的主题 CSS 中
title .search-header #search-term {
background-color: pink;
}
![]()

