diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts index 3cacc9bf8a..851cb8702a 100644 --- a/api/js/etemplate/Et2Widget/Et2Widget.ts +++ b/api/js/etemplate/Et2Widget/Et2Widget.ts @@ -217,6 +217,12 @@ const Et2WidgetMixin = (superClass : T) => this.disabled = false; this._handleClick = this._handleClick.bind(this); + + // make all sizable widgets large by default on mobile template + if (egwIsMobile()) + { + this.size = "large"; + } } connectedCallback() diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 5e8d00db77..cd5c06a941 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -3332,8 +3332,7 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext }, value: settings.search || '', fix: !egwIsMobile(), - placeholder: egw.lang("Search"), - size: egwIsMobile()?"large":'' + placeholder: egw.lang("Search") }; // searchbox widget this.et2_searchbox = loadWebComponent('et2-searchbox', searchbox_options, this);