diff --git a/src/app/(withAuth)/courses/[courseId]/[languageId]/[programId]/BoardEditor.tsx b/src/app/(withAuth)/courses/[courseId]/[languageId]/[programId]/BoardEditor.tsx index 347e81d5..6e3a7cf1 100644 --- a/src/app/(withAuth)/courses/[courseId]/[languageId]/[programId]/BoardEditor.tsx +++ b/src/app/(withAuth)/courses/[courseId]/[languageId]/[programId]/BoardEditor.tsx @@ -267,7 +267,7 @@ export const BoardEditor = forwardRef
y = {selectedPosition.y}
) : ( -
なし
+ なし )} @@ -331,12 +331,13 @@ export const BoardEditor = forwardRef - ) : selectedPosition ? ( + ) : ( + なし + )} + {!selectedCharacter && selectedPosition && ( - ) : ( -
なし
)} diff --git a/src/app/(withAuth)/courses/[courseId]/[languageId]/[programId]/BoardViewer.tsx b/src/app/(withAuth)/courses/[courseId]/[languageId]/[programId]/BoardViewer.tsx index a122abc3..25bdf277 100644 --- a/src/app/(withAuth)/courses/[courseId]/[languageId]/[programId]/BoardViewer.tsx +++ b/src/app/(withAuth)/courses/[courseId]/[languageId]/[programId]/BoardViewer.tsx @@ -10,7 +10,7 @@ import { TURTLE_GRAPHICS_BOARD_GAP_PX as GAP_PX, TURTLE_GRAPHICS_BOARD_PADDING_PX as PADDING_PX, } from '../../../../../../constants'; -import { Box, Grid, GridItem, Img } from '../../../../../../infrastructures/useClient/chakra'; +import { Box, Grid, GridItem, Img, keyframes } from '../../../../../../infrastructures/useClient/chakra'; import { charToColor } from '../../../../../../problems/traceProgram'; import type { CharacterTrace, TraceItemVar } from '../../../../../../problems/traceProgram'; @@ -41,6 +41,15 @@ const DIR_TO_TRANSFORM_FUNCTION = { E: 'rotate(270deg)', } as const; +const focusRingKeyframes = keyframes({ + '0%': { + borderColor: '#d69e2e' /* yellow.500 */, + }, + '100%': { + borderColor: '#f6e05e' /* yellow.300 */, + }, +}); + type Props = BoxProps & { board: string | undefined; vars: TraceItemVar | undefined; @@ -147,8 +156,8 @@ export const BoardViewer: React.FC = ({ {focusedCell && (