Skip to content

Commit e9a3091

Browse files
committed
Fixes #4630 graph mcp button tooltip not interactive
1 parent b9421d6 commit e9a3091

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/webviews/apps/plus/graph/graph-header.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ export class GlGraphHeader extends SignalWatcher(LitElement) {
116116
graphHeaderControlStyles,
117117
progressStyles,
118118
css`
119-
.mcp-tooltip a {
119+
.mcp-tooltip::part(body) {
120+
--max-width: 320px;
121+
}
122+
123+
.mcp-tooltip__content a {
120124
color: var(--vscode-textLink-foreground);
121125
}
122126
@@ -722,19 +726,20 @@ export class GlGraphHeader extends SignalWatcher(LitElement) {
722726
${when(
723727
!(this.graphState.state.mcpBannerCollapsed ?? true),
724728
() => html`
725-
<gl-tooltip placement="bottom">
729+
<gl-popover class="mcp-tooltip" placement="bottom" trigger="click focus hover">
726730
<a
727731
class="action-button action-button--mcp"
728732
href=${createCommandLink('gitlens.ai.mcp.install', { source: 'graph' })}
733+
slot="anchor"
729734
>
730735
<code-icon class="action-button__icon" icon="mcp"></code-icon>
731736
</a>
732-
<span class="mcp-tooltip" slot="content">
737+
<div class="mcp-tooltip__content" slot="content">
733738
<strong>Install GitKraken MCP for GitLens</strong> <br />
734739
Leverage Git and Integration information from GitLens in AI chat.
735740
<a href="https://help.gitkraken.com/mcp/mcp-getting-started">Learn more</a>
736-
</span>
737-
</gl-tooltip>
741+
</div>
742+
</gl-popover>
738743
`,
739744
)}
740745
<gl-tooltip placement="bottom">

0 commit comments

Comments
 (0)