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.
11 lines
435 B
Plaintext
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>
|