formatted code to fit the rest of the project

This commit is contained in:
Bash Elliott 2023-01-09 20:23:21 +11:00
parent 8c8c6c0970
commit 630740d334
3 changed files with 10 additions and 11 deletions

View file

@ -8,7 +8,7 @@
}
.picker {
position: fixed!important;
top: 0;
right: 0;
position: fixed!important;
top: 0;
right: 0;
}

View file

@ -27,10 +27,10 @@ function App() {
[newMessage, messages]
)
const handleColourChange = (color) => {
setColour(color.hex);
console.log(color);
};
const handleColourChange = (color) => {
setColour(color.hex);
console.log(color);
};
const lastMessage = messages[messages.length - 1]
const dy = lastMessage ? lastMessage.height : 0
@ -49,11 +49,11 @@ function App() {
value={newMessage}
onChange={setNewMessage}
onSubmit={handleSubmit}
colourClass={colour}
colourClass={colour}
/>
</Chat>
<SketchPicker className="picker" color={colour} onChange={handleColourChange}/>
<SketchPicker className="picker" color={colour} onChange={handleColourChange}/>
</div>
)
}

View file

@ -15,7 +15,6 @@
.bubble-content {
margin-right: 25%;
background-color: rgb(126, 203, 255);
position: relative;
}