Update Drawing.js

This commit is contained in:
brausjonas
2023-07-07 23:09:47 +02:00
parent 64e8120af8
commit bf83a20fcf
+14 -15
View File
@@ -499,6 +499,18 @@ export default function Drawing(p) {
}} value={nameInput} onChange={e => {
setNameInput(e.currentTarget.value)
}}/>
{/*Color Selector*/}
<input type={"color"}
style={{
pointerEvents: "auto",
borderWidth: 0,
borderRadius: 5,
boxShadow: "0 0 5px gray",
}} onChange={e => {
setColorValue(e.target.value)
}} value={colorValue}/>
</div>
<div style={{
@@ -674,20 +686,6 @@ export default function Drawing(p) {
handleToolChange(e)
}}/>
</div>
{/*Color Selector*/}
<input type={"color"}
style={{
pointerEvents: "auto",
borderWidth: 0,
borderRadius: 5,
boxShadow: "0 0 5px gray",
marginLeft: 20,
marginRight: 40
}} onChange={e => {
setColorValue(e.target.value)
}} value={colorValue}/>
</div>
@@ -726,7 +724,8 @@ export default function Drawing(p) {
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
gap: 5
gap: 5,
marginTop: 20
}}>
{/*save button*/}