Skip to content

Commit

Permalink
PasswordInput Fixes (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amnish04 authored Apr 25, 2024
1 parent e4967a9 commit 9f73dea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/components/Message/AppMessage/Instructions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ function Instructions(props: MessageBaseProps) {
size={"md"}
bg="white"
_dark={{ bg: "gray.700" }}
style={{
color:
selectedProvider instanceof FreeModelProvider ? "transparent" : "initial",
}}
isDisabled={selectedProvider instanceof FreeModelProvider}
value={selectedProvider.apiKey || ""}
onChange={handleApiKeyChange}
Expand Down
2 changes: 1 addition & 1 deletion src/components/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function PasswordInput({
isInvalid,
size = "sm",
buttonSize = "sm",
paddingRight = "4.5rem",
paddingRight = "2.5rem",
...props
}: PasswordInputProps) {
const [show, setShow] = useState(false);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Preferences/ModelsSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ function ModelsSettings(isOpen: ModelsSettingsProps) {
<PasswordInput
size="sm"
buttonSize="xs"
paddingRight={"2.5rem"}
paddingRight={"2rem"}
paddingLeft={"0.5rem"}
fontSize="xs"
value={newCustomProvider.apiKey || ""}
Expand Down Expand Up @@ -733,7 +733,7 @@ function ModelsSettings(isOpen: ModelsSettingsProps) {
<PasswordInput
size="sm"
buttonSize="xs"
paddingRight={"2.5rem"}
paddingRight={"2rem"}
paddingLeft={"0.5rem"}
fontSize="xs"
value={provider.apiKey || ""}
Expand Down

0 comments on commit 9f73dea

Please sign in to comment.