diff --git a/app/assets/stylesheets/content/work_packages/single_view/_single_view.sass b/app/assets/stylesheets/content/work_packages/single_view/_single_view.sass index 9315362c51..ba200a2774 100644 --- a/app/assets/stylesheets/content/work_packages/single_view/_single_view.sass +++ b/app/assets/stylesheets/content/work_packages/single_view/_single_view.sass @@ -174,7 +174,12 @@ i page-break-inside: avoid break-inside: avoid + @supports (column-span: all) // Let some elements still span both columns - &.-span-all-columns + .attributes-key-value.-span-all-columns column-span: all - + .attributes-key-value--key + flex-basis: calc(16.65% - (4rem / 6)) + .attributes-key-value--value-container + flex-basis: calc(83.35% + (4rem / 6)) + max-width: calc(83.35% + (4rem / 6)) diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 59d7e0c061..384ded0331 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -104,8 +104,8 @@ module RepositoriesHelper def calculate_folder_action(tree) seen = Set.new tree.each do |_, entry| - if folderStyle = change_action_mapping[entry[:c].try(:action)] - seen << folderStyle + if folder_style = change_action_mapping[entry[:c].try(:action)] + seen << folder_style end end @@ -115,8 +115,7 @@ module RepositoriesHelper def render_changes_tree(tree) return '' if tree.nil? - output = '' - output << '