feat(theseus/tabs): title + URL tooltip on hover
Every .tab now carries a native title="<title>\n<url>" so hovering the tab shows the page's own title and the URL (the way Chrome/Firefox do it). Uses the url already present in the per-tab payload emitTabs sends; no extra IPC.
This commit is contained in:
parent
61ebe44dac
commit
67c306293c
1 changed files with 2 additions and 1 deletions
|
|
@ -710,7 +710,8 @@
|
|||
? '<span class="spin"></span>'
|
||||
: (t.favicon ? `<img class="fav" src="${String(t.favicon).replace(/"/g,""")}" onerror="this.remove()">` : '');
|
||||
const mute = t.muted ? `<span class="mute" title="Muted">🔇</span>` : "";
|
||||
out += `<div class="tab ${t.active ? "active" : ""}${t.group ? " grp g-" + t.group : ""}" data-id="${t.id}" draggable="true">${icon}<span class="t">${(t.title||"New Tab").replace(/</g,"<")}</span>${mute}<span class="x" data-close="${t.id}">✕</span></div>`;
|
||||
const tt = ((t.title || "New Tab") + (t.url ? "\n" + t.url : "")).replace(/"/g, """);
|
||||
out += `<div class="tab ${t.active ? "active" : ""}${t.group ? " grp g-" + t.group : ""}" data-id="${t.id}" draggable="true" title="${tt}">${icon}<span class="t">${(t.title||"New Tab").replace(/</g,"<")}</span>${mute}<span class="x" data-close="${t.id}">✕</span></div>`;
|
||||
return out;
|
||||
}).join("") +
|
||||
`<span class="newtab" id="newtab">+</span>`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue