Add truncation rules for WPCard component

This commit is contained in:
Henriette Darge
2026-05-28 11:04:16 +02:00
parent 4c0559242c
commit acfaf0fc5c
7 changed files with 44 additions and 13 deletions
@@ -37,13 +37,16 @@ module OpenProject::WorkPackages
# @param show_status [Boolean]
# @param font_size [Symbol] select [small, normal]
# @param status_scheme select [default, secondary]
def playground(show_project: false, show_subject: false, show_status: true, font_size: :small, status_scheme: :default)
# @param wrap [Boolean]
def playground(show_project: false, show_subject: false, show_status: true, font_size: :small, status_scheme: :default,
wrap: true)
render(WorkPackages::InfoLineComponent.new(work_package: WorkPackage.visible.first,
show_project:,
show_subject:,
show_status:,
status_scheme:,
font_size:))
font_size:,
wrap:))
end
end
end