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

Hide text of all toolbar icons on mobile

Inga Mai693381f5cf94
diff --git a/app/assets/stylesheets/layout/_toolbar_mobile.sass b/app/assets/stylesheets/layout/_toolbar_mobile.sass
index c542b9b4cc0..173800e8cbd 100644
--- a/app/assets/stylesheets/layout/_toolbar_mobile.sass
+++ b/app/assets/stylesheets/layout/_toolbar_mobile.sass
@@ -42,6 +42,10 @@
flex-wrap: nowrap
justify-content: flex-end
+ .button--text,
+ .icon-pulldown
+ display: none
+
.op-icon--wrapper
margin: 0
diff --git a/app/views/project_settings/show.html.erb b/app/views/project_settings/show.html.erb
index 8dbdeaf395d..e925f4de69b 100644
--- a/app/views/project_settings/show.html.erb
+++ b/app/views/project_settings/show.html.erb
@@ -41,7 +41,7 @@ See docs/COPYRIGHT.rdoc for more details.
</li>
<% end %>
<% if @project.copy_allowed? %>
- <li class="toolbar-item">
+ <li class="toolbar-item hidden-for-mobile">
<%= link_to copy_from_project_path(@project, coming_from: :settings), class: 'button copy', accesskey: accesskey(:copy) do %>
<%= op_icon('button--icon icon-copy') %>
<span class="button--text"><%= t(:label_copy_project) %></span>
@@ -49,7 +49,7 @@ See docs/COPYRIGHT.rdoc for more details.
</li>
<% end %>
<% if User.current.admin? %>
- <li class="toolbar-item">
+ <li class="toolbar-item hidden-for-mobile">
<%= link_to(archive_project_path(@project, status: '', name: @project.name),
data: { confirm: t('project.archive.are_you_sure', name: @project.name) },
method: :put,
diff --git a/frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.html b/frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.html
index e925f3a7dd4..b747ff72ff9 100644
--- a/frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.html
+++ b/frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.html
@@ -7,7 +7,7 @@
[stateName]="stateName"
[dropdownActive]="allowed">
<op-icon icon-classes="button--icon icon-add"></op-icon>
- <span class="button--text hidden-for-mobile"
+ <span class="button--text"
[textContent]="text.createWithDropdown"
aria-hidden="true"></span>
<op-icon icon-classes="button--icon icon-small icon-pulldown hidden-for-mobile"></op-icon>
diff --git a/frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.html b/frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.html
index 2ea838f142d..c6616a2b73a 100644
--- a/frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.html
+++ b/frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.html
@@ -7,7 +7,7 @@
(click)="performAction($event)"
[ngClass]="{ '-active': isActive }">
<op-icon icon-classes="{{ iconClass }} button--icon"></op-icon>
- <span class="button--text hidden-for-mobile">
+ <span class="button--text">
{{ buttonText }}
<span class="badge -secondary" *ngIf="initialized" [textContent]="filterCount"></span>
</span>
diff --git a/frontend/src/app/modules/boards/index-page/boards-index-page.component.html b/frontend/src/app/modules/boards/index-page/boards-index-page.component.html
index 5a2b101fc71..565e5348900 100644
--- a/frontend/src/app/modules/boards/index-page/boards-index-page.component.html
+++ b/frontend/src/app/modules/boards/index-page/boards-index-page.component.html
@@ -1,22 +1,24 @@
-<div class="toolbar">
- <div class="title-container">
- <h2 [textContent]="text.boards">
- </h2>
+<div class="toolbar-container">
+ <div class="toolbar">
+ <div class="title-container">
+ <h2 [textContent]="text.boards">
+ </h2>
+ </div>
+ <ul class="toolbar-items"
+ *ngIf="showBoardIndexView()">
+ <li *ngIf="canAdd"
+ class="toolbar-item">
+ <a class="button -alt-highlight"
+ (click)="newBoard()">
+ <op-icon icon-classes="icon-add icon4">
+ </op-icon>
+ <span class="button--text"
+ [textContent]="text.board">
+ </span>
+ </a>
+ </li>
+ </ul>
</div>
- <ul class="toolbar-items"
- *ngIf="showBoardIndexView()">
- <li *ngIf="canAdd"
- class="toolbar-item">
- <a class="button -alt-highlight"
- (click)="newBoard()">
- <op-icon icon-classes="icon-add icon4">
- </op-icon>
- <span class="button--text"
- [textContent]="text.board">
- </span>
- </a>
- </li>
- </ul>
</div>
<div class="boards--listing-group loading-indicator--location"