diff --git a/Changelog.md b/Changelog.md index 96466dfb0..0c7f45d8c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,7 @@ ## Bug fixes * Ensure the log folder exists [#8287](https://github.com/diaspora/diaspora/pull/8287) +* Limit name length in header [#8313] (https://github.com/diaspora/diaspora/pull/8313) ## Features * Add tags to tumblr posts [#8244](https://github.com/diaspora/diaspora/pull/8244) diff --git a/app/assets/stylesheets/header.scss b/app/assets/stylesheets/header.scss index 55fe8f924..c3285f99f 100644 --- a/app/assets/stylesheets/header.scss +++ b/app/assets/stylesheets/header.scss @@ -119,6 +119,19 @@ } } + .dropdown-toggle { + align-items: center; + display: flex; + + .user-name { + margin-right: 3px; + max-width: 250px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + } + .user-menu-dropdown { padding: 0; } diff --git a/app/assets/templates/header_tpl.jst.hbs b/app/assets/templates/header_tpl.jst.hbs index d730a8bd5..567f3aa85 100644 --- a/app/assets/templates/header_tpl.jst.hbs +++ b/app/assets/templates/header_tpl.jst.hbs @@ -69,7 +69,7 @@