Skip to content

Commit

Permalink
qol: hide overflowing citation query unless copying
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdabbs committed Dec 6, 2023
1 parent ce73ba3 commit d763464
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/viewer/src/components/Shared/Cite.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="text-center p-2">
<small>
Cite as:
<span class="text-muted">
<span class="citation text-muted">
The pi-Base Community.
{#if title}
<cite>{title}.</cite>
Expand All @@ -32,3 +32,13 @@
<CopyButton text={markdown}>Markdown Link</CopyButton>
</small>
</div>

<style>
.p-2 {
overflow: hidden;
}
.p-2:hover {
overflow: visible;
}
</style>

0 comments on commit d763464

Please sign in to comment.