Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Only align to the right side, when the column is an action column not per default the last column

Henriette Darge423f5c6ac648
diff --git a/app/components/op_primer/border_box_table_component.rb b/app/components/op_primer/border_box_table_component.rb
index f8d447a54b8..f1d5ee52c9f 100644
--- a/app/components/op_primer/border_box_table_component.rb
+++ b/app/components/op_primer/border_box_table_component.rb
@@ -89,6 +89,7 @@ module OpPrimer
def header_classes(column)
classes = [heading_class]
classes << "op-border-box-grid--main-column" if main_column?(column)
+ classes << "op-border-box-grid--heading-action" if column == :actions
classes.join(" ")
end
diff --git a/app/components/op_primer/border_box_table_component.sass b/app/components/op_primer/border_box_table_component.sass
index fce819bb0c1..201e0d86dca 100644
--- a/app/components/op_primer/border_box_table_component.sass
+++ b/app/components/op_primer/border_box_table_component.sass
@@ -6,7 +6,9 @@
&--row-item
word-break: break-word
- &--row-action
+ &--row-action,
+ &--heading-action
+ display: flex
align-items: center
justify-content: flex-end
@@ -26,11 +28,6 @@
&:not(:last-child)
padding-right: 6px
- &:last-child
- justify-content: flex-end !important
- display: flex !important
- flex-direction: row !important
-
&--mobile-heading,
&--row-label
display: none