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

[#43308] Hide time stamp and avatar when there are hover actions

Andreas Pfohl7c0dce6a038c
diff --git a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html
index 12e666221f2..9f0fc88b374 100644
--- a/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html
+++ b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html
@@ -1,4 +1,4 @@
-<div class="spot-list--item-floating-wrapper">
+<div class="spot-list--item-floating-wrapper op-files-tab--file-list-item-floating-wrapper">
<a
class="spot-list--item-action spot-list--item-action_link op-files-tab--file-list-item-action"
[href]="attachment._links.staticDownloadLocation.href"
diff --git a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
index e49c72171fd..ec48bb6949b 100644
--- a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
+++ b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
@@ -1,8 +1,8 @@
<spot-tooltip
[disabled]="!disabled"
[alignment]="tooltipAllignment"
- class="spot-list--item-floating-wrapper"
- [ngClass]="{ 'spot-list--item-floating-wrapper_disabled': disabled }"
+ class="spot-list--item-floating-wrapper op-files-tab--file-list-item-floating-wrapper"
+ [ngClass]="{ 'spot-list--item-floating-wrapper__disabled op-files-tab--file-list-item-floating-wrapper__disabled': disabled }"
>
<p
slot="body"
diff --git a/frontend/src/app/spot/styles/sass/components/list.sass b/frontend/src/app/spot/styles/sass/components/list.sass
index 2545d5daad0..87a73ec6042 100644
--- a/frontend/src/app/spot/styles/sass/components/list.sass
+++ b/frontend/src/app/spot/styles/sass/components/list.sass
@@ -52,7 +52,10 @@
position: relative
display: flex
- &_disabled
+ &:hover
+ background-color: $spot-color-basic-gray-6
+
+ &__disabled
color: $spot-color-basic-gray-1
&:hover
diff --git a/frontend/src/global_styles/content/work_packages/tabs/_files.sass b/frontend/src/global_styles/content/work_packages/tabs/_files.sass
index cf4d4c23aa5..ed854dde770 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_files.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_files.sass
@@ -75,6 +75,10 @@
height: $spot-spacing-1-5
display: inline-block
+ &-floating-wrapper:not(&-floating-wrapper__disabled):hover &-text,
+ &-floating-wrapper:not(&-floating-wrapper__disabled):hover &-avatar
+ visibility: hidden
+
&-floating-actions
padding-right: 0