Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cursor update #2592

Merged
merged 2 commits into from
Jan 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions src/components/Universe/CursorTooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useHoveredNode } from '~/stores/useGraphStore'
import { colors } from '~/utils'
import { HoverCard } from './HoverCard/index'

const CURSOR_SIZE = 100
const CURSOR_SIZE = 70

export const CursorTooltip = () => {
const tooltipRef = useRef<HTMLDivElement | null>(null)
Expand Down Expand Up @@ -70,20 +70,6 @@ export const CursorTooltip = () => {
<>
<CustomCursorWrapper ref={cursorRef}>
<Flex className="inner-circle">
<Flex align="center" className="inner-circle__text" grow={1} justify="space-between">
{node ? (
<>
<span>Click to</span>
<span>Select</span>
</>
) : (
<>
<span>Scroll to</span>
<span>Explore</span>
</>
)}
</Flex>

<span className="inner-circle__center">+</span>
</Flex>
</CustomCursorWrapper>
Expand Down Expand Up @@ -126,8 +112,6 @@ const CustomCursorWrapper = styled(Flex)`
justify-content: center;

.inner-circle {
width: ${CURSOR_SIZE - 30}px;
height: ${CURSOR_SIZE - 30}px;
border-radius: 50%;
border: 1px solid ${colors.white};
border-color: rgba(255, 255, 255, 0.2);
Expand Down Expand Up @@ -163,6 +147,7 @@ const CustomCursorWrapper = styled(Flex)`
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
margin-top: -2px;
}
}
`
Loading