fix(ui): prompt shows thru prompt label text

This commit is contained in:
psychedelicious 2024-08-14 12:01:49 +10:00
parent e0d3927265
commit 29d6f48901
5 changed files with 20 additions and 16 deletions

View File

@ -53,10 +53,11 @@ export const ParamNegativePrompt = memo(() => {
onKeyDown={onKeyDown} onKeyDown={onKeyDown}
fontSize="sm" fontSize="sm"
variant="darkFilled" variant="darkFilled"
minH={24} minH={28}
paddingRight={10} borderTopWidth={24} // This prevents the prompt from being hidden behind the header
paddingLeft={3} paddingInlineEnd={10}
paddingTop={7} paddingInlineStart={3}
paddingTop={0}
paddingBottom={3} paddingBottom={3}
/> />
<PromptOverlayButtonWrapper> <PromptOverlayButtonWrapper>

View File

@ -68,9 +68,10 @@ export const ParamPositivePrompt = memo(() => {
minH={40} minH={40}
onKeyDown={onKeyDown} onKeyDown={onKeyDown}
variant="darkFilled" variant="darkFilled"
paddingRight={10} borderTopWidth={24} // This prevents the prompt from being hidden behind the header
paddingLeft={3} paddingInlineEnd={10}
paddingTop={7} paddingInlineStart={3}
paddingTop={0}
paddingBottom={3} paddingBottom={3}
/> />
<PromptOverlayButtonWrapper> <PromptOverlayButtonWrapper>

View File

@ -1,9 +1,9 @@
import { FormLabel } from '@invoke-ai/ui-library'; import { Text } from '@invoke-ai/ui-library';
export const PromptLabel = ({ label }: { label: string }) => { export const PromptLabel = ({ label }: { label: string }) => {
return ( return (
<FormLabel color="base.450" fontSize="xs" pos="absolute" top={2} left={3}> <Text variant="subtext" fontWeight="semibold" pos="absolute" top={1} left={2}>
{label} {label}
</FormLabel> </Text>
); );
}; };

View File

@ -42,9 +42,10 @@ export const ParamSDXLNegativeStylePrompt = memo(() => {
fontSize="sm" fontSize="sm"
variant="darkFilled" variant="darkFilled"
minH={24} minH={24}
paddingRight={10} borderTopWidth={24} // This prevents the prompt from being hidden behind the header
paddingLeft={3} paddingInlineEnd={10}
paddingTop={7} paddingInlineStart={3}
paddingTop={0}
paddingBottom={3} paddingBottom={3}
/> />
<PromptOverlayButtonWrapper> <PromptOverlayButtonWrapper>

View File

@ -39,9 +39,10 @@ export const ParamSDXLPositiveStylePrompt = memo(() => {
fontSize="sm" fontSize="sm"
variant="darkFilled" variant="darkFilled"
minH={24} minH={24}
paddingRight={10} borderTopWidth={24} // This prevents the prompt from being hidden behind the header
paddingLeft={3} paddingInlineEnd={10}
paddingTop={7} paddingInlineStart={3}
paddingTop={0}
paddingBottom={3} paddingBottom={3}
/> />
<PromptOverlayButtonWrapper> <PromptOverlayButtonWrapper>