Skip to content

Commit b1e8cbc

Browse files
committed
reuse edit link UX for writerIcon
1 parent 047f65e commit b1e8cbc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
<div id="main-actions" class="flex">
9090
<div id="write-wrapper" class="non-touch-dimmed">
91-
<a class="icon" tabindex="0">
91+
<a class="icon">
9292
<i class=i-plus></i>
9393
</a>
9494
<div id="write-style"></div>

src/popup/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const EntryClick = {
4949

5050
/** All these handlers accept a right-click, `btn = 2` property is added below */
5151
const GlobalClick = {
52-
'.write-style-link': openEditor,
52+
'a[href*="edit.html"]': openEditor,
5353
[selManager + '~ .split-btn-menu a'](evt, ...args) {
5454
openManager(null, ...args);
5555
},

src/popup/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function createWriterElement(frame, index) {
9999
el = (url.startsWith(ownRoot) ? makeExtCrumbs : makeWebCrumbs)(crumbs, url);
100100
el.onmouseenter = el.onmouseleave = el.onfocus = el.onblur = toggleUrlLink;
101101
if (!index) {
102-
writerIcon.onclick = () => el.click();
102+
writerIcon.href = el.href;
103103
writerIcon.title = el.title;
104104
}
105105
}

0 commit comments

Comments
 (0)