diff --git a/chrome/content/zotero/tabs.js b/chrome/content/zotero/tabs.js index 6d3907d9b4..6e81c0fdca 100644 --- a/chrome/content/zotero/tabs.js +++ b/chrome/content/zotero/tabs.js @@ -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'); diff --git a/scss/components/_tabsMenu.scss b/scss/components/_tabsMenu.scss index ebdebc9fe8..7a279a7180 100644 --- a/scss/components/_tabsMenu.scss +++ b/scss/components/_tabsMenu.scss @@ -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;