Fix padding EditableCell DoubleText

This commit is contained in:
Charles Bochet
2023-06-21 22:42:38 -07:00
parent 817d6dcb05
commit df6376dce0
2 changed files with 9 additions and 4 deletions

View File

@ -17,11 +17,15 @@ export type OwnProps = {
export function PeopleCompanyCell({ people }: OwnProps) { export function PeopleCompanyCell({ people }: OwnProps) {
const [isCreating] = useRecoilScopedState(isCreateModeScopedState); const [isCreating] = useRecoilScopedState(isCreateModeScopedState);
return isCreating ? ( return (
<PeopleCompanyCreateCell people={people} />
) : (
<EditableCellV2 <EditableCellV2
editModeContent={<PeopleCompanyPicker people={people} />} editModeContent={
isCreating ? (
<PeopleCompanyCreateCell people={people} />
) : (
<PeopleCompanyPicker people={people} />
)
}
nonEditModeContent={ nonEditModeContent={
<CompanyChip <CompanyChip
name={people.company?.name ?? ''} name={people.company?.name ?? ''}

View File

@ -13,6 +13,7 @@ export const textInputStyle = (props: any) =>
border: none; border: none;
color: ${props.theme.text80}; color: ${props.theme.text80};
outline: none; outline: none;
padding: ${props.theme.spacing(0)} ${props.theme.spacing(2)};
&::placeholder, &::placeholder,
&::-webkit-input-placeholder { &::-webkit-input-placeholder {