Fix padding EditableCell DoubleText
This commit is contained in:
@ -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 ?? ''}
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user