opened tabs menu visibility improvements (#3620)

- Added tooltip to display the entire title of the tab on hover
- Ellipsize the text of the tab title to display as much of the last
word as possible

Fixes: #3609
This commit is contained in:
abaevbog 2024-01-29 02:40:09 -05:00 committed by GitHub
parent 41294e0ff7
commit e68b9b80ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -845,6 +845,7 @@ var Zotero_Tabs = new function () {
tabName.setAttribute('class', 'zotero-tabs-menu-entry title');
tabName.setAttribute('tabindex', `${index++}`);
tabName.setAttribute('aria-label', tab.title);
tabName.setAttribute('tooltiptext', tab.title);
// Cross button to close a tab
let closeButton = document.createXULElement('toolbarbutton');

View file

@ -44,6 +44,10 @@
// override default description margins
margin-bottom: 0;
margin-block-start: 0;
// show as much of the description as possible
white-space: nowrap;
min-width: 280px;
text-overflow: ellipsis;
}
.tab-icon {
width: 16px;