From ea4daec58d6932218ffb1009269c2ecf8d5b27d1 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 11 Dec 2022 04:21:27 -0600 Subject: [PATCH] posts: fix shift+e keyboard shortcut not working. Broken in da6a61b4e. --- app/javascript/src/styles/specific/posts.scss | 4 ---- app/views/posts/partials/show/_edit.html.erb | 4 +--- app/views/uploads/_single_asset_upload.html.erb | 4 +--- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/javascript/src/styles/specific/posts.scss b/app/javascript/src/styles/specific/posts.scss index ffce76d3a..24520794e 100644 --- a/app/javascript/src/styles/specific/posts.scss +++ b/app/javascript/src/styles/specific/posts.scss @@ -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); diff --git a/app/views/posts/partials/show/_edit.html.erb b/app/views/posts/partials/show/_edit.html.erb index 5db032311..767198a14 100644 --- a/app/views/posts/partials/show/_edit.html.erb +++ b/app/views/posts/partials/show/_edit.html.erb @@ -31,9 +31,7 @@ - - <%= external_link_icon(id: "open-edit-dialog", "data-shortcut": "shift+e") %> - + <%= link_to external_link_icon(class: "text-xxs"), "javascript:void(0)", id: "open-edit-dialog", "data-shortcut": "shift+e" %>
diff --git a/app/views/uploads/_single_asset_upload.html.erb b/app/views/uploads/_single_asset_upload.html.erb index a9c4399b0..9d1557802 100644 --- a/app/views/uploads/_single_asset_upload.html.erb +++ b/app/views/uploads/_single_asset_upload.html.erb @@ -140,9 +140,7 @@ - - <%= external_link_icon(id: "open-edit-dialog", "data-shortcut": "shift+e") %> - + <%= link_to external_link_icon(class: "text-xxs"), "javascript:void(0)", id: "open-edit-dialog", "data-shortcut": "shift+e" %>
<%= f.input :tag_string, label: false, hint: "Ctrl+Enter to submit", input_html: { "data-autocomplete": "tag-edit", "data-shortcut": "e", value: post.tag_string } %>