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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add margin to avatar only when there is a name next to it and align in top menu correctly
Henriette Darge287b94770809
diff --git a/frontend/src/global_styles/common/header/app-menu.sass b/frontend/src/global_styles/common/header/app-menu.sassindex 9a00d0fe814..146fa90ef42 100644--- a/frontend/src/global_styles/common/header/app-menu.sass+++ b/frontend/src/global_styles/common/header/app-menu.sass@@ -17,11 +17,12 @@align-items: center&--item-title- min-width: 0px+ min-width: 0+ line-height: 1white-space: nowrap&--item-action- background: transparent+ background: transparentborder: 0display: flexjustify-content: centerdiff --git a/frontend/src/global_styles/content/_avatar.sass b/frontend/src/global_styles/content/_avatar.sassindex dfa52e46ed3..a1fc8a386b2 100644--- a/frontend/src/global_styles/content/_avatar.sass+++ b/frontend/src/global_styles/content/_avatar.sass@@ -4,7 +4,6 @@// min-width was added because the avatar was getting squished as a flex-childmin-width: var(--user-avatar-width)height: var(--user-avatar-height)- margin-right: 10pxcolor: whitedisplay: inline-blocktext-align: centerdiff --git a/frontend/src/global_styles/content/_principal.sass b/frontend/src/global_styles/content/_principal.sassindex f65c99f0bb1..105e4139651 100644--- a/frontend/src/global_styles/content/_principal.sass+++ b/frontend/src/global_styles/content/_principal.sass@@ -7,10 +7,11 @@flex-shrink: 0&--name- @include text-shortener+ @include text-shortenerflex-grow: 1flex-shrink: 1min-width: 0 // See: https://css-tricks.com/flexbox-truncated-text/+ margin-left: 10px&--multi-linedisplay: block