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

Correct spacings of buttons between each other.

Henriette Dargef134a97f52d9
diff --git a/frontend/src/app/spot/styles/sass/components/action-bar.sass b/frontend/src/app/spot/styles/sass/components/action-bar.sass
index d6a6fed5ab3..53c71cf3d54 100644
--- a/frontend/src/app/spot/styles/sass/components/action-bar.sass
+++ b/frontend/src/app/spot/styles/sass/components/action-bar.sass
@@ -2,6 +2,7 @@
display: grid
grid-template-columns: 1fr
background-color: $spot-color-basic-gray-6
+ padding: 0 $spot-spacing-1
a.button
text-decoration: none
@@ -19,7 +20,13 @@
margin-top: -$spot-spacing-0_25
> .spot-action-bar--action
- margin: $spot-spacing-1 $spot-spacing-1 $spot-spacing-0-75 $spot-spacing-1
+ // We need to set the margins on the buttons itself because
+ // an empty action bar would take unnecessary space if we put the padding there.
+ // see #47994 and #49729
+ margin: $spot-spacing-1 $spot-spacing-1 $spot-spacing-0-75 0
+
+ &:last-of-type
+ margin-right: 0
@media #{$spot-mq-action-bar-change}
grid-template-columns: 1fr auto