WIP Mobile template: Make all widgets large on mobile template

This commit is contained in:
Hadi Nategh 2022-08-22 13:59:07 +02:00
parent 9bc90488f7
commit d3d0216a39
2 changed files with 7 additions and 2 deletions

View File

@ -217,6 +217,12 @@ const Et2WidgetMixin = <T extends Constructor>(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()

View File

@ -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 = <Et2Searchbox>loadWebComponent('et2-searchbox', searchbox_options, this);