mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
878ff28148
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
16 lines
428 B
Plaintext
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 %>
|