Worked perfectly fine, Thanks!
3 posts were split to a new topic: Can I add line breaks to Search Banner subheader text?
This is a super minor gripe, but the name of this Theme Component comes through as discourse-search-banner
.
This looks quite untidy next to the other official TCs, which would have it as Discourse Search Banner
or better yet just Search Banner
Yeah, I think Iâve spotted a couple more like that on my travels. It would be nice to clean those up.
Is it as easy as chucking in a PR for the about.json, or are there any other considerations?
I think it is. Here goes:
Hi,
When I resize my window, specifically when I make it smaller or zoomed in, the background does not auto adjust and remains left aligned. Is there a way to fix it?
Seems Discourse has the same issue that I have in my community, the overlay takes some time to cover whatever is under the search underlay (Discover) :
Itâs more pronounce in my community :
Wondering if anyone came across a fix for that, potentially a delay to display the overlay? Might lead to a bad experience.
the issue is with :
conditional-loading-section:not(.is-loading) {
transition: opacity 5s ease-in-out;
}
You canât use the custom CSS to set this to none
this is getting overwritten by the theme default conditional-loading-section.scss
Is there a possibility to reposition the search banner?
For example to change the alignment from center to the right or just adjust the position by moving it slightly to the right?
Not using Theme component settings, but thatâs something you can easily achieve using your own custom CSS.
We are using it to position the background image instead of text
but unable to readjust the image with the search banner
would highly appreciate providing the CSS code
Using inspect element can help. Or even looking at this componentâs CSS source or the Air Theme as the first part of the CSS under common first few lines target the search banner with mods targetting it.
Untested as an not XP the issue you mention.
.display-search-banner {
#main-outlet {
padding-top: 2em;
align: center !important;
}
Put this code in a custom theme-component CSS common.
I can appreciate the desire for ppl to provide how to code. As I am still learning myself. However we need to also work on educating ourselves with the basics.
You can possibly test the âalign: center !important;â using your browserâs inspect element.
this looks great, however when using it in the RTL layout it seems that the padding doesnât translate correctly.
LTR:
RTL:
it seems that the padding for the settings icon and the place holder are switched in RTL mode.
Thanks for letting us know! Iâve just made an update that should fix it.