From 48d0c48964d181464b39bf1173635ff1a8e02ffa Mon Sep 17 00:00:00 2001 From: Fraser Date: Sat, 12 Aug 2023 17:27:46 -0400 Subject: [PATCH] fix positioning of hover box when text is not on far left --- web/src/styles/globals.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/styles/globals.css b/web/src/styles/globals.css index e56d570..0d117aa 100644 --- a/web/src/styles/globals.css +++ b/web/src/styles/globals.css @@ -43,10 +43,11 @@ ol { position: absolute; display: none; width: 300px; + transform: translate(-50%, 1.7rem); @apply bg-white hover:bg-gray-300 h-fit px-3; @apply border border-gray-300; } .glossary-link:hover + .glossary-hover { - display: block; + display: initial; }