Skip to content

Commit 7e50b54

Browse files
committed
Improved the last used badge position on small screens
1 parent ddecae4 commit 7e50b54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/webapp/app/routes/login._index/route.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ function LastUsedBadge() {
2323
const shouldReduceMotion = useReducedMotion();
2424

2525
return (
26-
<div className="absolute -right-[4.6rem] top-1/2 z-10 -translate-y-1/2 shadow-md">
26+
<div className="absolute -right-5 top-1 z-10 -translate-y-1/2 shadow-md md:-right-[4.6rem] md:top-1/2">
2727
<motion.div
28-
className="relative inline-flex flex-col items-center rounded border border-charcoal-700 bg-charcoal-800 px-2 py-1 text-center text-[10px] font-medium uppercase text-blue-500"
28+
className="relative rounded border border-charcoal-700 bg-charcoal-800 px-2 py-1 text-center text-xxs font-medium uppercase text-blue-500"
2929
initial={shouldReduceMotion ? undefined : { opacity: 0, x: 4 }}
3030
animate={shouldReduceMotion ? undefined : { opacity: 1, x: 0 }}
3131
transition={shouldReduceMotion ? undefined : { duration: 0.8, ease: "easeOut" }}
3232
>
3333
<span className="pointer-events-none absolute left-0 top-1/2 -translate-x-1/2 -translate-y-1/2">
34-
<span className="block h-2 w-2 rotate-45 border-b border-l border-charcoal-700 bg-charcoal-800" />
34+
<span className="hidden h-2 w-2 rotate-45 border-b border-l border-charcoal-700 bg-charcoal-800 md:block" />
3535
</span>
3636
Last used
3737
</motion.div>

0 commit comments

Comments
 (0)