From ee2f91571e5deef2c74c76fa86e3836905ef73b3 Mon Sep 17 00:00:00 2001 From: MuhammadUmer44 Date: Fri, 20 Sep 2024 23:09:37 +0500 Subject: [PATCH 1/2] fix(blue-print): number attribute type display full --- .../Body/Editor/CustomAttributesStep/FormInput/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/CustomAttributesStep/FormInput/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/CustomAttributesStep/FormInput/index.tsx index d0fd98ceb..770a07109 100644 --- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/CustomAttributesStep/FormInput/index.tsx +++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/CustomAttributesStep/FormInput/index.tsx @@ -108,7 +108,7 @@ export const FormInput = ({ /> - setValue(`attributes[${index}].type`, val?.value)} @@ -165,3 +165,9 @@ const InputsWrapper = styled(Flex)` width: calc(100% + 20px); max-height: calc(80vh - 300px); ` + +const StyledAutoComplete = styled(AutoComplete)` + & .MuiInput-input.MuiInputBase-input { + padding: 8px 2px !important; + } +` From 3bbed7768211b4de3d4b24bb967f121902b4fa66 Mon Sep 17 00:00:00 2001 From: Umer <160427254+MuhammadUmer44@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:49:25 +0500 Subject: [PATCH 2/2] Update index.tsx --- .../Body/Editor/CustomAttributesStep/FormInput/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/CustomAttributesStep/FormInput/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/CustomAttributesStep/FormInput/index.tsx index f0d3016ae..48d0c5b89 100644 --- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/CustomAttributesStep/FormInput/index.tsx +++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/CustomAttributesStep/FormInput/index.tsx @@ -4,6 +4,7 @@ import { useFieldArray, useFormContext } from 'react-hook-form' import { ClipLoader } from 'react-spinners' import styled from 'styled-components' import { NoParent, OptionTypes } from '~/components/AddItemModal/SourceTypeStep/constants' +import { AutoComplete } from '~/components/common/AutoComplete' import { Flex } from '~/components/common/Flex' import { TextInput } from '~/components/common/TextInput' import DeleteIcon from '~/components/Icons/DeleteIcon'