Skip to content

Commit f19def5

Browse files
psychedelicioushipsterusername
authored andcommitted
feat(ui): replace aspect ratio icon
closes #5448
1 parent 9e1dd8a commit f19def5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

invokeai/frontend/web/src/features/parameters/components/ImageSize/AspectRatioPreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useSize } from '@chakra-ui/react-use-size';
33
import { useImageSizeContext } from 'features/parameters/components/ImageSize/ImageSizeContext';
44
import { AnimatePresence, motion } from 'framer-motion';
55
import { useMemo, useRef } from 'react';
6-
import { FaImage } from 'react-icons/fa';
6+
import { PiFrameCorners } from 'react-icons/pi';
77

88
import {
99
BOX_SIZE_CSS_CALC,
@@ -76,7 +76,7 @@ export const AspectRatioPreview = () => {
7676
exit={MOTION_ICON_EXIT}
7777
style={ICON_CONTAINER_STYLES}
7878
>
79-
<Icon as={FaImage} color="base.700" boxSize={BOX_SIZE_CSS_CALC} />
79+
<Icon as={PiFrameCorners} color="base.700" boxSize={BOX_SIZE_CSS_CALC} />
8080
</Flex>
8181
)}
8282
</AnimatePresence>

invokeai/frontend/web/src/features/parameters/components/ImageSize/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { AspectRatioID, AspectRatioState } from './types';
55
// When the aspect ratio is between these two values, we show the icon (experimentally determined)
66
export const ICON_LOW_CUTOFF = 0.23;
77
export const ICON_HIGH_CUTOFF = 1 / ICON_LOW_CUTOFF;
8-
export const ICON_SIZE_PX = 48;
8+
export const ICON_SIZE_PX = 64;
99
export const ICON_PADDING_PX = 16;
1010
export const BOX_SIZE_CSS_CALC = `min(${ICON_SIZE_PX}px, calc(100% - ${ICON_PADDING_PX}px))`;
1111
export const MOTION_ICON_INITIAL = {

0 commit comments

Comments
 (0)