Skip to content

Commit 38c5a80

Browse files
committed
Replaces native tooltip with gl-tooltip on minimap icon
1 parent 4d92149 commit 38c5a80

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/webviews/apps/plus/graph/minimap/minimap.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { first, flatMap, groupByMap, map, union } from '../../../../../system/it
77
import { capitalize, pluralize } from '../../../../../system/string';
88
import { GlElement, observe } from '../../../shared/components/element';
99
import { formatDate, formatNumeric, fromNow } from '../../../shared/date';
10+
import '../../../shared/components/overlays/tooltip';
1011

1112
export interface BranchMarker {
1213
type: 'branch';
@@ -1073,12 +1074,14 @@ export class GlGraphMinimap extends GlElement {
10731074
return html`
10741075
<div id="spinner"><code-icon icon="loading" modifier="spin"></code-icon></div>
10751076
<div id="chart"></div>
1076-
<div
1077-
class="legend"
1078-
title="${this.dataType === 'lines' ? 'Showing lines changed per day' : 'Showing commits per day'}"
1079-
>
1080-
<code-icon icon="${this.dataType === 'lines' ? 'request-changes' : 'git-commit'}"></code-icon>
1081-
</div>
1077+
<gl-tooltip>
1078+
<div class="legend">
1079+
<code-icon icon="${this.dataType === 'lines' ? 'request-changes' : 'git-commit'}"></code-icon>
1080+
</div>
1081+
<div slot="content">
1082+
${this.dataType === 'lines' ? 'Showing lines changed per day' : 'Showing commits per day'}
1083+
</div>
1084+
</gl-tooltip>
10821085
`;
10831086
}
10841087
}

0 commit comments

Comments
 (0)