posts: fix shift+e keyboard shortcut not working.

Broken in da6a61b4e.
This commit is contained in:
evazion
2022-12-11 04:21:27 -06:00
parent da6a61b4e7
commit ea4daec58d
3 changed files with 2 additions and 10 deletions

View File

@@ -221,10 +221,6 @@ div#c-post-versions, div#c-artist-versions {
display: inline-block;
}
i#open-edit-dialog {
font-size: var(--text-xxs);
}
span[data-tag-counter] {
float: right;
color: var(--muted-text-color);

View File

@@ -31,9 +31,7 @@
<span class="tag-count"></span>
<img>
</span>
<a href="javascript:void(0)">
<%= external_link_icon(id: "open-edit-dialog", "data-shortcut": "shift+e") %>
</a>
<%= link_to external_link_icon(class: "text-xxs"), "javascript:void(0)", id: "open-edit-dialog", "data-shortcut": "shift+e" %>
</div>
<div>

View File

@@ -140,9 +140,7 @@
<span class="tag-count"></span>
<img>
</span>
<a href="javascript:void(0)">
<%= external_link_icon(id: "open-edit-dialog", "data-shortcut": "shift+e") %>
</a>
<%= link_to external_link_icon(class: "text-xxs"), "javascript:void(0)", id: "open-edit-dialog", "data-shortcut": "shift+e" %>
</div>
<%= f.input :tag_string, label: false, hint: "Ctrl+Enter to submit", input_html: { "data-autocomplete": "tag-edit", "data-shortcut": "e", value: post.tag_string } %>