Skip to content

Commit bb7735d

Browse files
committed
fix: ui improvements
1 parent fa1c49b commit bb7735d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/InputBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const InputBox = () => {
2828

2929
const handleKeyDown = async (event: React.KeyboardEvent<HTMLInputElement>) => {
3030
if (event.key === "Enter") {
31-
askGpt(input)
31+
!loading && askGpt(input)
3232
}
3333
};
3434

src/components/inputbox.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.topArea {
22
display: flex;
3-
background-color: rgb(39, 43, 84);
3+
background-color: rgb(84, 150, 255);
44
padding: 2px 12px;
55
height: 40px;
66
width: 100%;
@@ -22,7 +22,6 @@
2222

2323
.settingsIcon {
2424
border-radius: 50%;
25-
text-align: right;
2625
width: 5%;
2726
cursor: pointer;
2827
font-size: x-large;

0 commit comments

Comments
 (0)