Skip to content

Commit a362444

Browse files
authored
[Docs] Remove extra spaces in glossary tooltips (#16521)
1 parent f522adf commit a362444

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/components/GlossaryTooltip.astro

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,19 @@ definition = definition.charAt(0).toUpperCase() + definition.slice(1);
2525
definition = definition.split(/\r?\n/)[0];
2626
---
2727

28+
<!-- prettier-ignore -->
2829
<span
2930
id={tooltip.term}
3031
data-tooltip
3132
data-content={marked.parse(definition)}
3233
class="border-b-2 border-dashed border-accent-600"
3334
>{
3435
link ? (
35-
<a href={link}>
36-
<slot />
37-
</a>
36+
<a href={link}><slot /></a>
3837
) : (
3938
<slot />
4039
)
41-
}</span
42-
><script>
40+
}</span><script>
4341
import tippy from "tippy.js";
4442

4543
const tooltips = document.querySelectorAll<HTMLSpanElement>("[data-tooltip]");
@@ -50,7 +48,7 @@ definition = definition.split(/\r?\n/)[0];
5048
allowHTML: true,
5149
interactive: true,
5250
placement: "auto",
53-
arrow: false
51+
arrow: false,
5452
});
5553
}
5654
</script><style is:global>

0 commit comments

Comments
 (0)