Skip to content

Commit

Permalink
chore: reduce presence opacity when inactive
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 18, 2024
1 parent b54e687 commit 8390bbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/modules/activity/Presence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const ReadPresenceTimeline = () => {

return (
<RootPortal>
<div className="group fixed bottom-20 left-0 top-20 z-[3]">
<div className="group fixed bottom-20 left-0 top-20 z-[3] w-8">
{uniq(activityPresenceIdsCurrentRoom).map((identity) => {
return (
<TimelineItem
Expand Down Expand Up @@ -268,8 +268,8 @@ const MoitonBar = forwardRef<
aria-label={isCurrent ? '你在这里' : `读者在这里 - ${position}%`}
ref={elRef}
className={clsx(
'absolute h-2 -translate-x-4 rounded-full bg-accent duration-200 group-hover:opacity-80 hover:-translate-x-2 hover:opacity-100',
isCurrent ? 'w-9 opacity-40 group-hover:opacity-100' : 'w-8 opacity-30',
'absolute h-2 -translate-x-4 rounded-full bg-accent duration-200 group-hover:w-10 group-hover:opacity-80 hover:-translate-x-2 hover:opacity-100',
isCurrent ? 'w-9 opacity-40 group-hover:opacity-100' : 'w-8 opacity-20',
)}
style={{
top: isCurrent ? `${position}%` : void 0,
Expand Down

0 comments on commit 8390bbd

Please sign in to comment.