fix: 1 pixel off in selected block component

This commit is contained in:
trafficlunar 2024-12-27 22:55:11 +00:00
parent 1721d08cf3
commit 602b9b201d

View file

@ -29,7 +29,7 @@ function SelectedBlock() {
<TooltipProvider> <TooltipProvider>
<Tooltip delayDuration={0}> <Tooltip delayDuration={0}>
<TooltipTrigger asChild> <TooltipTrigger asChild>
<div ref={divRef} className="absolute bottom-1 w-8 h-8 border border-zinc-800 dark:border-zinc-200"> <div ref={divRef} className="absolute bottom-1 w-8 h-8 outline outline-1 outline-zinc-800 dark:outline-zinc-200">
<Stage width={divRef.current?.clientWidth} height={divRef.current?.clientHeight}> <Stage width={divRef.current?.clientWidth} height={divRef.current?.clientHeight}>
<Container> <Container>
<Sprite texture={selectedBlockTexture} scale={2} /> <Sprite texture={selectedBlockTexture} scale={2} />