Files
ubicloud/views/components/copyable_content.erb
Burak Yucesoy e31466c1d2 Use divs instead of spans in some components
This is bit of a cosmetic change without any functional impact. span elements
are usually used for simple, inline text styling, while div elements are
typically used for block-level elements that can contain other elements. For
these components, using divs instead of spans makes more sense as they contain
more complex structures and multiple levels of sub-elements.
2025-06-03 05:17:15 +03:00

11 lines
435 B
Plaintext

<%# locals: (content:, message: "Copied", revealable: false) %>
<div class="copyable-content inline-flex items-center gap-1" data-content="<%= content %>" data-message="<%= message %>">
<% if revealable %>
<%== part("components/revealable_content", content:) %>
<% else %>
<%= content %>
<% end %>
<img src="/icons/hero-clipboard-document.svg" width="18px" class="inline-block copy-button cursor-pointer ms1"/>
</div>