mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
suppress tooltip / statustext / title on mobile devices
This commit is contained in:
parent
5dbf3152f3
commit
d6dfaaab81
@ -84,7 +84,7 @@ export class Et2LAvatar extends Et2Avatar
|
||||
let label = (this.egw().preference("account_display", "common") || "firstname").includes("first") || !this.lname || !this.fname ?
|
||||
this.fname + " " + this.lname :
|
||||
this.lname + ", " + this.fname;
|
||||
if(label != this.statustext)
|
||||
if(label != this.statustext && !egwIsMobile())
|
||||
{
|
||||
this.statustext = label.trim();
|
||||
}
|
||||
|
@ -1265,7 +1265,7 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
||||
<sl-option
|
||||
part="option"
|
||||
exportparts="prefix:tag__prefix, suffix:tag__suffix, image"
|
||||
title="${!option.title || this.noLang ? option.title : this.egw().lang(option.title)}"
|
||||
title="${!egwIsMobile() && option.title ? (this.noLang ? option.title : this.egw().lang(option.title)) : nothing}"
|
||||
class=${classMap({
|
||||
...classes
|
||||
})}
|
||||
|
@ -37,7 +37,7 @@ export class Et2UrlEmailReadonly extends Et2UrlReadonly
|
||||
{
|
||||
this._value = val;
|
||||
const split = splitEmail(this._value);
|
||||
super.statustext = split.name ? split.email : "";
|
||||
super.statustext = !egwIsMobile() && split.name ? split.email : "";
|
||||
formatEmailAddress(val, !this.emailDisplay ? "email" :
|
||||
(this.emailDisplay === 'preference' ? null : this.emailDisplay)).then(
|
||||
(value) => super.value = value);
|
||||
|
@ -660,7 +660,7 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
||||
|
||||
if (action.caption)
|
||||
{
|
||||
widget.statustext = action.caption;
|
||||
if (!egwIsMobile()) widget.statustext = action.caption;
|
||||
if ((this.countActions <= parseInt(this.view_range) ||
|
||||
this.preference[action.id] || !action.iconUrl) &&
|
||||
!(isCheckbox && isToggleSwitch)) // no caption for slideswitch checkboxes
|
||||
|
@ -178,7 +178,7 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
var options = {...optionsDefault, ...(_options||{})};
|
||||
|
||||
_elem = jQuery(_elem);
|
||||
if (_html != '')
|
||||
if (_html && !egwIsMobile())
|
||||
{
|
||||
_elem.bind('mouseenter.tooltip', function(e) {
|
||||
if (_elem != current_elem)
|
||||
@ -263,5 +263,4 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
}
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user