Skip to content

Commit 7a722e3

Browse files
committed
Moves to use the field name but puts title in the on hover
1 parent 68cdaf5 commit 7a722e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/models/SchemaRow.astro

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ const { node, root } = Astro.props;
99
class={`py-2 !my-0 !list-none ${root ? "" : "border-l border-l-gray-200 dark:border-l-gray-500 pl-4"}`}
1010
>
1111
{
12-
node.title ? (
13-
<span class="mr-2 font-bold">{node.title}</span>
14-
) : (
15-
<code class="mr-2 rounded-md bg-gray-100 !pr-0 font-mono">
12+
(
13+
<code
14+
class="mr-2 rounded-md bg-gray-100 !pr-0 font-mono"
15+
title={node.title}
16+
>
1617
{node.subpath[node.subpath.length - 1]}
1718
{node.parent.fragment?.required?.includes(
1819
node.subpath[node.subpath.length - 1],

0 commit comments

Comments
 (0)