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

[40294] User name not shown in news block (#9991)

Behrokh Satarnejadc718c174d4ed
diff --git a/app/views/homescreen/blocks/_news.html.erb b/app/views/homescreen/blocks/_news.html.erb
index 285e3917891..c5aebfb7a46 100644
--- a/app/views/homescreen/blocks/_news.html.erb
+++ b/app/views/homescreen/blocks/_news.html.erb
@@ -5,7 +5,7 @@
<li class="-widget-box--arrow-multiline">
<div>
<%= avatar(news.author, class: 'news-author-avatar hidden-for-mobile') %>
- <div class="news-project">
+ <div class="news--project">
<%= link_to_project(news.project) + ': ' %>
<%= link_to h(news.title), news_path(news) %>
</div>
diff --git a/frontend/src/app/shared/components/grids/widgets/news/news.component.html b/frontend/src/app/shared/components/grids/widgets/news/news.component.html
index 756a21048e1..ca366fdb97a 100644
--- a/frontend/src/app/shared/components/grids/widgets/news/news.component.html
+++ b/frontend/src/app/shared/components/grids/widgets/news/news.component.html
@@ -14,14 +14,14 @@
<ul class="widget-box--arrow-links">
<li class="-widget-box--arrow-multiline"
*ngFor="let news of entries">
- <div class="news-project">
+ <div>
<op-principal
*ngIf="news.author"
[principal]="news.author"
[hideName]="true"
class="news-author-avatar hidden-for-mobile"
></op-principal>
- <div>
+ <div class="news--project">
<a [href]="newsProjectPath(news)"
[textContent]="newsProjectName(news)">
</a>:
diff --git a/frontend/src/global_styles/content/_news.sass b/frontend/src/global_styles/content/_news.sass
index 275b41173ef..ad4aff07eec 100644
--- a/frontend/src/global_styles/content/_news.sass
+++ b/frontend/src/global_styles/content/_news.sass
@@ -49,6 +49,8 @@
margin-right: 5px
float: left
+.news--project
+ display: inline
@media screen and (max-width: 679px)
.news-author