show tooltips in popup on ellipsized names
This commit is contained in:
parent
af64ec4ac0
commit
b63449f299
|
@ -1,4 +1,3 @@
|
||||||
/* global retranslateCSS */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
let installed;
|
let installed;
|
||||||
|
@ -267,6 +266,11 @@ function createStyleElement({
|
||||||
});
|
});
|
||||||
styleName.checkbox = checkbox;
|
styleName.checkbox = checkbox;
|
||||||
styleName.appendChild(document.createTextNode(style.name));
|
styleName.appendChild(document.createTextNode(style.name));
|
||||||
|
setTimeout((el = styleName) => {
|
||||||
|
if (el.scrollWidth > el.clientWidth + 1) {
|
||||||
|
el.title = el.textContent;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$('.enable', entry).onclick = handleEvent.toggle;
|
$('.enable', entry).onclick = handleEvent.toggle;
|
||||||
$('.disable', entry).onclick = handleEvent.toggle;
|
$('.disable', entry).onclick = handleEvent.toggle;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user