fix: more tooltips (#6767)

This commit is contained in:
Alexander Onnikov
2024-09-30 20:46:49 +07:00
committed by GitHub
parent 6b68b7f90a
commit 9fac238d56
13 changed files with 57 additions and 11 deletions
@@ -186,11 +186,13 @@
const aside: ButtonItem[] = [
{
id: 'references',
icon: document.icon.References
icon: document.icon.References,
showTooltip: { label: document.string.Backlinks, direction: 'bottom' }
},
{
id: 'activity',
icon: activity.icon.Activity
icon: activity.icon.Activity,
showTooltip: { label: activity.string.Activity, direction: 'bottom' }
}
]
let selectedAside: string | boolean = false
@@ -282,6 +284,7 @@
icon={IconMoreH}
iconProps={{ size: 'medium' }}
kind={'icon'}
showTooltip={{ label: view.string.MoreActions, direction: 'bottom' }}
on:click={showContextMenu}
/>
{#each actions as action}
@@ -311,6 +314,7 @@
fill: doc.color !== undefined ? getPlatformColorDef(doc.color, $themeStore.dark).icon : 'currentColor'
}}
disabled={readonly}
showTooltip={{ label: document.string.Icon, direction: 'bottom' }}
on:click={chooseIcon}
/>
</div>
@@ -19,6 +19,7 @@
import type { Action, AnySvelteComponent } from '@hcengineering/ui'
import { IconMoreH, Menu, navigate, showPopup, NavItem, ButtonIcon } from '@hcengineering/ui'
import { getDocumentLink } from '../../utils'
import view from '@hcengineering/view'
export let doc: Document
export let icon: Asset | AnySvelteComponent | undefined = undefined
@@ -87,6 +88,7 @@
size={'extra-small'}
pressed={hovered}
dataId={'btnDocMore'}
tooltip={{ label: view.string.MoreActions, direction: 'top' }}
on:click={onMenuClick}
/>
</svelte:fragment>