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
Disable links of notification entries on mobile Make "incative" class a BEM modifier Correct styles on projects table
Henriette Dargecb902afc36d9
diff --git a/app/cells/projects/table_cell.rb b/app/cells/projects/table_cell.rbindex c02ee50fc27..e367756ed56 100644--- a/app/cells/projects/table_cell.rb+++ b/app/cells/projects/table_cell.rb@@ -39,7 +39,7 @@ module Projectsdef deactivate_class_on_lft_sortif sorted_by_lft?- '-inactive'+ 'op-link_inactive'endenddiff --git a/app/cells/views/projects/table/show.erb b/app/cells/views/projects/table/show.erbindex b4c2b77af4c..856ac701101 100644--- a/app/cells/views/projects/table/show.erb+++ b/app/cells/views/projects/table/show.erb@@ -33,21 +33,21 @@ See COPYRIGHT and LICENSE files for more details.<table class="generic-table" <%= table_id ? "id=\"#{table_id}\"" : '' %>><colgroup><% headers.each do |_name, _options| %>- <col opHighlightCol>+ <col <%= "opHighlightCol" unless _name == :hierarchy %> ><% end %>- <col>+ <col opHighlightCol></colgroup><thead class="-sticky"><tr><% headers.each do |name, options| %><% if name == :hierarchy %><th id="project-table--hierarchy-header">- <div class="generic-table--sort-header-outer">+ <div class="generic-table--sort-header-outer generic-table--sort-header-outer_no-highlighting"><div class="generic-table--sort-header"><%= content_tag :a,op_icon("icon-hierarchy"),href: href_only_when_not_sort_lft,- class: deactivate_class_on_lft_sort,+ class: "op-link #{deactivate_class_on_lft_sort}",title: t(:label_sort_by, value: %("#{t(:label_project_hierarchy)}")) %></div></div>diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.htmlindex d60f918c882..dd0cbc6e738 100644--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html@@ -11,7 +11,8 @@</div><a- class="op-ian-item--work-package-id-link"+ class="op-ian-item--work-package-id-link op-link"+ [class.op-link_inactive]="isMobile()"[attr.title]="workPackage.subject"uiSref="work-packages.show"[uiParams]="{workPackageId: workPackage.id}"@@ -23,7 +24,9 @@class="op-ian-item--project">- <a- class="op-ian-item--project-link" [href]="project.showUrl"+ class="op-ian-item--project-link"+ [class.op-link_inactive]="isMobile()"+ [href]="project.showUrl"[textContent]="project.title"(click)="projectClicked($event)"target="_blank"@@ -94,6 +97,7 @@[principal]="actors[0]"[hide-name]="false"[hide-avatar]="true"+ [link]="!isMobile()"></op-principal><span*ngIf="actors.length > 1"diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.tsindex 169739f4b48..6e2f030469c 100644--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts@@ -27,6 +27,7 @@ import { HalResource } from 'core-app/features/hal/resources/hal-resource';import { BackRouteOptions } from 'core-app/features/work-packages/components/back-routing/back-routing.service';import { InAppNotification } from 'core-app/core/state/in-app-notifications/in-app-notification.model';import { IanCenterService } from 'core-app/features/in-app-notifications/center/state/ian-center.service';+import { DeviceService } from 'core-app/core/browser/device.service';@Component({selector: 'op-in-app-notification-entry',@@ -77,6 +78,7 @@ export class InAppNotificationEntryComponent implements OnInit {readonly timezoneService:TimezoneService,readonly pathHelper:PathHelperService,readonly state:StateService,+ readonly deviceService:DeviceService,) {}@@ -146,6 +148,10 @@ export class InAppNotificationEntryComponent implements OnInit {return hint;}+ isMobile():boolean {+ return this.deviceService.isMobile;+ }+private buildActors() {const actors = this.aggregatedNotificationsdiff --git a/frontend/src/global_styles/common/link/link.sass b/frontend/src/global_styles/common/link/link.sassindex be8c8b9bcab..e537abc48c9 100644--- a/frontend/src/global_styles/common/link/link.sass+++ b/frontend/src/global_styles/common/link/link.sass@@ -13,6 +13,10 @@&:focuscolor: var(--content-link-hover-active-color)+ &_inactive+ pointer-events: none+ cursor: default+// Ensure op-icon within a link gets inline-block// to avoid it receiving any text-decoration on hover.op-icon--wrapperdiff --git a/frontend/src/global_styles/content/_links.sass b/frontend/src/global_styles/content/_links.sassindex ba04a925825..cbfbc341bb3 100644--- a/frontend/src/global_styles/content/_links.sass+++ b/frontend/src/global_styles/content/_links.sass@@ -77,10 +77,6 @@ a.icon, a.icon-contexta.icon:hover, a.icon-context:hovertext-decoration: none-a.-inactive- pointer-events: none- cursor: default-#content table th a.no-decoration-on-hover:hover, a.no-decoration-on-hover:hovertext-decoration: nonediff --git a/frontend/src/global_styles/content/_projects_list.sass b/frontend/src/global_styles/content/_projects_list.sassindex 3ce6494b18f..9de85c2f88f 100644--- a/frontend/src/global_styles/content/_projects_list.sass+++ b/frontend/src/global_styles/content/_projects_list.sass@@ -138,11 +138,6 @@ form.project-filters.project-description.-expandeddisplay: table-row- // Avoid hover effect- .generic-table--sort-header-outer:hover,- .generic-table--header-outer:hover- background: initial-td.name@include text-shortenera@@ -158,8 +153,7 @@ form.project-filters@include calc-indentation-description($i)#project-table--hierarchy-header- font-size: 1rem- max-width: 0.875rem+ max-width: 1rem.generic-table--sort-headermin-width: 1remdiff --git a/frontend/src/global_styles/content/_table.sass b/frontend/src/global_styles/content/_table.sassindex c8f38338879..a59c824302b 100644--- a/frontend/src/global_styles/content/_table.sass+++ b/frontend/src/global_styles/content/_table.sass@@ -243,6 +243,11 @@ thead.-sticky th&.hoverbackground: #f8f8f8+ &_no-highlighting+ &:hover,+ &.hover+ background: initial+.generic-table--empty-headerpadding: 0 6pxheight: var(--generic-table--header-height)@@ -278,7 +283,7 @@ thead.-sticky thwidth: 100%font-weight: bold@include text-shortener- &.-inactive+ &.op-link_inactivecolor: var(--button--active-font-color)& > op-icon