From d7fc381137081f9af3f85e45799376557bc362e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=BCl=C3=B6p=20Kov=C3=A1cs?= Date: Wed, 8 Jun 2022 15:31:22 +0200 Subject: [PATCH] Make the keyframes dots smaller on hover --- .../AggregateKeyframeEditor/AggregateKeyframeVisualDot.tsx | 2 +- .../BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.tsx index 19153c5..d49f543 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/AggregatedKeyframeTrack/AggregateKeyframeEditor/AggregateKeyframeVisualDot.tsx @@ -5,7 +5,7 @@ import {absoluteDims} from '@theatre/studio/utils/absoluteDims' import {pointerEventsAutoInNormalMode} from '@theatre/studio/css' const DOT_SIZE_PX = 16 -const DOT_HOVER_SIZE_PX = DOT_SIZE_PX + 5 +const DOT_HOVER_SIZE_PX = DOT_SIZE_PX + 2 /** The keyframe diamond ◆ */ const DotContainer = styled.div` diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.tsx index dcc395c..0cc379f 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/SingleKeyframeDot.tsx @@ -30,7 +30,7 @@ import { } from '@theatre/studio/panels/SequenceEditorPanel/DopeSheet/Right/KeyframeSnapTarget' export const DOT_SIZE_PX = 6 -const DOT_HOVER_SIZE_PX = DOT_SIZE_PX + 5 +const DOT_HOVER_SIZE_PX = DOT_SIZE_PX + 2 const dotTheme = { normalColor: '#40AAA4',