Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/assets/builds/alchemy/admin.css

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions app/stylesheets/alchemy/admin/clipboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@
gap: var(--spacing-2);
padding: var(--spacing-2);
border: var(--border-default);
background-color: white;
background-color: var(--sitemap-page-background-color);
border-radius: var(--border-radius_medium);

&.elements {
background-color: var(--color-grey_light);
background-color: var(--element-editor-background-color);
}

.icon_button {
.button_to {
margin-left: auto;
cursor: pointer;
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions app/views/alchemy/admin/clipboard/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<%= truncate(item.display_name_with_preview_text(50), length: 50) %>
<% end %>
<sl-tooltip content="<%= Alchemy.t('Remove item from clipboard') %>">
<%= link_to render_icon(:close, size: '1x'),
<%= button_to render_icon(:close, size: '1x'),
alchemy.remove_admin_clipboard_path(remarkable_type: item_class, remarkable_id: item.id),
"data-turbo-method": :delete,
method: :delete,
class: "icon_button small"
%>
</sl-tooltip>
Expand All @@ -31,10 +31,10 @@
</ul>

<p>
<%= link_to Alchemy.t('clear clipboard'),
<%= button_to Alchemy.t('clear clipboard'),
alchemy.clear_admin_clipboard_path(remarkable_type: params[:remarkable_type]),
"data-turbo-confirm": Alchemy.t('Do you really want to clear the clipboard?'),
"data-turbo-method": :delete,
method: :delete,
class: 'button' %>
</p>
<% end %>
Expand Down