diff --git a/src/apps/chat/components/persona-selector/PersonaSelector.tsx b/src/apps/chat/components/persona-selector/PersonaSelector.tsx index c7fe2ffb3..1cb9336f2 100644 --- a/src/apps/chat/components/persona-selector/PersonaSelector.tsx +++ b/src/apps/chat/components/persona-selector/PersonaSelector.tsx @@ -20,10 +20,8 @@ import { usePurposeStore } from './store-purposes'; // 'special' purpose IDs, for tile hiding purposes const PURPOSE_ID_PERSONA_CREATOR = '__persona-creator__'; -// Constants for tile sizes / grid width - breakpoints need to be computed here to work around -// the "flex box cannot shrink over wrapped content" issue -// -// Absolutely dislike this workaround, but it's the only way I found to make it work +// defined looks +const tileSize = 7.5; // rem /** @@ -128,14 +126,14 @@ export function PersonaSelector(props: { conversationId: DConversationId, runExa return ( - {showFinder && + {showFinder && @@ -190,7 +188,7 @@ export function PersonaSelector(props: { conversationId: DConversationId, runExa } sx={{ aspectRatio: 1, - height: '8rem', + height: `${tileSize}rem`, fontWeight: 500, ...((editMode || systemPurposeId !== spId) ? { boxShadow: 'md', @@ -224,7 +222,7 @@ export function PersonaSelector(props: { conversationId: DConversationId, runExa onClick={() => editMode ? toggleHiddenPurposeId(PURPOSE_ID_PERSONA_CREATOR) : void navigateToPersonas()} sx={{ aspectRatio: 1, - height: '8rem', + height: `${tileSize}rem`, fontWeight: 500, boxShadow: 'xs', backgroundColor: 'neutral.softDisabledBg', @@ -233,7 +231,7 @@ export function PersonaSelector(props: { conversationId: DConversationId, runExa > {editMode && ( show} sx={{ position: 'absolute', left: 8, top: 8 }} @@ -269,7 +267,7 @@ export function PersonaSelector(props: { conversationId: DConversationId, runExa {fourExamples?.map((example, idx) => (