1
0
Fork 0
mirror of synced 2024-10-04 12:03:31 +13:00

Add title attribute to reveal full screen URLs when hovering in screen list panel

This commit is contained in:
Andrew Kingston 2023-05-12 08:04:34 +01:00
parent f5a4ad58ab
commit a00d502acb
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@
export let highlighted = false
export let rightAlignIcon = false
export let id
export let showTooltip = false
const scrollApi = getContext("scroll")
const dispatch = createEventDispatcher()
@ -84,7 +85,7 @@
<Icon color={iconColor} size="S" name={icon} />
</div>
{/if}
<div class="text">{text}</div>
<div class="text" title={showTooltip ? text : null}>{text}</div>
{#if withActions}
<div class="actions">
<slot />

View file

@ -59,6 +59,7 @@
text={screen.routing.route}
on:click={() => store.actions.screens.select(screen._id)}
rightAlignIcon
showTooltip
>
<ScreenDropdownMenu screenId={screen._id} />
<RoleIndicator slot="right" roleId={screen.routing.roleId} />