Merge pull request #1595 from appwrite/fix-tooltip-content

Fix tooltip content
This commit is contained in:
Ernst Mulders
2025-01-02 08:18:46 +01:00
committed by GitHub
@@ -12,8 +12,6 @@
import { ActionMenu, Layout, Popover, Icon } from '@appwrite.io/pink-svelte';
export let deployment: Models.Deployment;
$: console.log(deployment);
</script>
{#if deployment.type === 'vcs'}
@@ -40,13 +38,14 @@
{deployment.providerBranch}
</ActionMenu.Item.Anchor>
{#if deployment?.providerCommitMessage && deployment?.providerCommitHash && deployment?.providerCommitUrl}
<!-- TODO: either the Popover or this Anchor needs to correctly manage the width -->
<ActionMenu.Item.Anchor
href={deployment.providerCommitUrl}
external
leadingIcon={IconGitCommit}>
<Trim alternativeTrim>
{deployment?.providerCommitHash?.substring(0, 7)}
{deployment.providerCommitMessage}
{deployment.providerCommitMessage.substring(0, 15)}...
</Trim>
</ActionMenu.Item.Anchor>
{/if}