suppress tooltip / statustext / title on mobile devices

This commit is contained in:
ralf 2024-07-27 12:52:14 +02:00
parent 5dbf3152f3
commit d6dfaaab81
5 changed files with 6 additions and 7 deletions

View File

@ -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();
}

View File

@ -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
})}

View File

@ -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);

View File

@ -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

View File

@ -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)
}
};
});
});