Skip to content

Commit 46e44ed

Browse files
committed
make named trace standout from the just a link
+ add tooltip with the link itself
1 parent 71bfb18 commit 46e44ed

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/view/components/TraceLink.svelte

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,16 @@
4747
{#if isSourceLess}
4848
<i class="no-link">{name ? `${name} ${link}` : link}</i>
4949
{:else}
50-
<a href={link} class="-trace" class:visited onclick={onClick}>{
51-
name || link
52-
}</a>
50+
<a
51+
href={link}
52+
title={link}
53+
class="-trace"
54+
class:visited
55+
class:name={!!name}
56+
onclick={onClick}
57+
>
58+
{name || link}
59+
</a>
5360
{/if}
5461

5562
<style lang="scss">
@@ -67,6 +74,9 @@
6774
text-overflow: ellipsis;
6875
max-width: 25rem;
6976
77+
&.name {
78+
font-weight: 600;
79+
}
7080
&.visited {
7181
background-color: var(--link-visited-bg);
7282
}

0 commit comments

Comments
 (0)