From 6b50e2c6fdf2c7facd5f6fee3711e5c0115c6d3d Mon Sep 17 00:00:00 2001 From: Kristina Date: Fri, 12 Jul 2024 19:15:55 +0400 Subject: [PATCH] Hide inbox tooltips and fic cursor (#6060) Signed-off-by: Kristina Fefelova --- packages/theme/styles/_layouts.scss | 1 - .../src/components/BasePreview.svelte | 24 +++++++-------- .../BaseMessagePreview.svelte | 25 ++++++++-------- .../components/DocNotifyContextCard.svelte | 30 +++++++++---------- 4 files changed, 38 insertions(+), 42 deletions(-) diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 5590c4fd2f..fb038966f0 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -109,7 +109,6 @@ li { p { user-select: text; - cursor: auto; a { word-break: break-all; diff --git a/plugins/activity-resources/src/components/BasePreview.svelte b/plugins/activity-resources/src/components/BasePreview.svelte index 7e62bf29f6..95d33259c4 100644 --- a/plugins/activity-resources/src/components/BasePreview.svelte +++ b/plugins/activity-resources/src/components/BasePreview.svelte @@ -27,7 +27,7 @@ import { Icon, Label, resizeObserver, TimeSince, tooltip } from '@hcengineering/ui' import { Asset, getEmbeddedLabel, IntlString } from '@hcengineering/platform' import activity, { ActivityMessage, ActivityMessagePreviewType } from '@hcengineering/activity' - import { classIcon, DocNavLink, showMenu } from '@hcengineering/view-resources' + import { classIcon, DocNavLink } from '@hcengineering/view-resources' import { markupToText } from '@hcengineering/text' export let message: ActivityMessage | undefined = undefined @@ -102,13 +102,13 @@ width = element.clientWidth }} on:click - on:contextmenu={(evt) => { - showMenu(evt, { object: message, baseMenuClass: activity.class.ActivityMessage }, () => { - isActionsOpened = false - }) - isActionsOpened = true - }} > + + + + + + {#if type === 'full'}
@@ -158,11 +158,11 @@ - {#if !readonly} -
- -
- {/if} + + + + +
diff --git a/plugins/activity-resources/src/components/activity-message/BaseMessagePreview.svelte b/plugins/activity-resources/src/components/activity-message/BaseMessagePreview.svelte index fab9d28821..defd6df359 100644 --- a/plugins/activity-resources/src/components/activity-message/BaseMessagePreview.svelte +++ b/plugins/activity-resources/src/components/activity-message/BaseMessagePreview.svelte @@ -15,9 +15,8 @@