mirror of
https://github.com/m1ngsama/chat-bubbles-for-yt.git
synced 2025-12-24 10:51:21 +00:00
formatted code to fit the rest of the project
This commit is contained in:
parent
8c8c6c0970
commit
630740d334
3 changed files with 10 additions and 11 deletions
|
|
@ -8,7 +8,7 @@
|
|||
}
|
||||
|
||||
.picker {
|
||||
position: fixed!important;
|
||||
top: 0;
|
||||
right: 0;
|
||||
position: fixed!important;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
12
src/App.jsx
12
src/App.jsx
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
.bubble-content {
|
||||
margin-right: 25%;
|
||||
background-color: rgb(126, 203, 255);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue