Remove mobile restriction from search field display
- Remove isMobile getter and mobile check from search display logic - Search field now displays on all devices for logged-in users - Update locales to remove 'desktop only' notation - Simplify conditional logic in template
This commit is contained in:
parent
1e7ad515a9
commit
2baeebdac7
4 changed files with 6 additions and 8 deletions
|
@ -30,10 +30,6 @@ export default class WelcomeBanner extends Component {
|
|||
return settings.enable_welcome_banner && this.displayForRoute;
|
||||
}
|
||||
|
||||
get isMobile() {
|
||||
return this.site.mobileView;
|
||||
}
|
||||
|
||||
get isAnonymous() {
|
||||
return !this.currentUser;
|
||||
}
|
||||
|
@ -105,7 +101,7 @@ export default class WelcomeBanner extends Component {
|
|||
</button>
|
||||
</div>
|
||||
{{else}}
|
||||
{{#if (and settings.enable_hero_search (not this.isMobile))}}
|
||||
{{#if settings.enable_hero_search}}
|
||||
<div class="search-container" role="search">
|
||||
<SearchMenu @searchInputId="welcome-banner-search" />
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@ en:
|
|||
hero_content_html: "Hero section content for logged-in users (HTML allowed)"
|
||||
hero_title_anonymous_html: "Hero section title for anonymous users (HTML allowed)"
|
||||
hero_content_anonymous_html: "Hero section content for anonymous users (HTML allowed)"
|
||||
enable_hero_search: "Enable search input in hero section (desktop only)"
|
||||
enable_hero_search: "Enable search input in hero section"
|
||||
search_placeholder: "Search input placeholder text"
|
||||
cta_card_1_enabled: "Enable CTA card 1"
|
||||
cta_card_1_icon_type: "CTA card 1 icon type"
|
||||
|
|
|
@ -13,7 +13,7 @@ hu:
|
|||
hero_content_html: "Hero szekció tartalma bejelentkezett felhasználóknak (HTML használható)"
|
||||
hero_title_anonymous_html: "Hero szekció címe nem bejelentkezett felhasználóknak (HTML használható)"
|
||||
hero_content_anonymous_html: "Hero szekció tartalma nem bejelentkezett felhasználóknak (HTML használható)"
|
||||
enable_hero_search: "Keresőmező megjelenítése a hero szekcióban (csak asztalon)"
|
||||
enable_hero_search: "Keresőmező megjelenítése a hero szekcióban"
|
||||
search_placeholder: "Keresőmező placeholder szövege"
|
||||
cta_card_1_enabled: "1. CTA kártya engedélyezése"
|
||||
cta_card_1_icon_type: "1. CTA kártya ikon típusa"
|
||||
|
|
|
@ -68,7 +68,9 @@ hero_title_anonymous_html:
|
|||
hero_content_anonymous_html:
|
||||
default: |
|
||||
<p>Ez a közösségi tér mindazoknak szól, akiket lelkesít a technológia világa – legyen szó nyílt forráskódról, kiberbiztonságról, adatvédelemről vagy mesterséges intelligenciáról.</p>
|
||||
<p>Csatlakozz hozzánk, és légy részese egy nyitott és inspiráló közösségnek, ahol megoszthatod a tudásod, kérdezhetsz, vagy tapasztalatokat cserélhetsz másokkal! 🌍✨</p>
|
||||
<p>Itt megoszthatod a tudásod, kérdezhetsz, vagy tapasztalatokat cserélhetsz másokkal – akár most ismerkedsz a témával, akár évek óta benne vagy.</p>
|
||||
<p>A Nyíltvilág célja egy támogató és inspiráló közösség építése, ahol mindenki tanulhat, fejlődhet, és értéket adhat hozzá a közös tudáshoz.</p>
|
||||
<p>Csatlakozz, és légy részese egy nyitott és inspiráló közösségnek! 🌍✨</p>
|
||||
type: string
|
||||
textarea: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue