Files
openproject/app/components/op_primer/expandable_text_component.html.erb
Alexander Brandon Coles 878ff28148 [#75275] Fix hellip/expandable text alignment
Extracts a shared `ExpandableTextComponent` for truncation with
`HiddenTextExpander`, preserving caller classes and data attributes.
Implements it on on the permissions report and workflows matrices so
expanded labels keep the ellipsis aligned with the first line.

https://community.openproject.org/wp/75275
2026-05-22 15:16:52 +02:00

16 lines
428 B
Plaintext

<%= render(Primer::BaseComponent.new(**@system_arguments)) do %>
<%= render Primer::Beta::Truncate.new(
data: { truncation_target: "truncate" },
flex: 1
) do %>
<%= content %>
<% end %>
<%= render Primer::Alpha::HiddenTextExpander.new(
hidden: true,
mt: 1,
aria: { label: t(:"js.label_expand_text") },
data: { truncation_target: "expander" }
) %>
<% end %>