Show full tab title on hover

Fixes https://github.com/zotero/zotero/issues/2033
This commit is contained in:
J. Ryan Stinnett 2021-05-04 13:28:46 +01:00 committed by Dan Stillman
parent 12b100fd4b
commit 74b9604c7b

View file

@ -106,6 +106,9 @@ const TabBar = forwardRef(function (props, ref) {
<div <div
key={id} key={id}
className={cx('tab', { selected })} className={cx('tab', { selected })}
/* Fix 'title' not working for HTML-in-XUL */
onMouseOver={() => window.Zotero_Tooltip.start(title)}
onMouseOut={() => window.Zotero_Tooltip.stop()}
onMouseDown={(event) => handleMouseDown(event, id, index)} onMouseDown={(event) => handleMouseDown(event, id, index)}
> >
<div className="tab-name">{title}</div> <div className="tab-name">{title}</div>