@@ -25,6 +25,16 @@ function NoteItem({ note = new Note(), index }) {
2525 const lineClip = 12
2626 const bgColor = note . color
2727
28+ const footerBtn = {
29+ className : `btn btn-light p-0 text-secondary item-footer-btn` ,
30+ style : {
31+ width : "1.8em" , height : "1.8em" , float : "right" ,
32+ borderColor : "transparent" ,
33+ backgroundColor : "transparent" ,
34+ boxShadow : "none"
35+ }
36+ }
37+
2838 return (
2939 < div className = "p-1" >
3040 < div className = "card" style = { { backgroundColor : bgColor } } >
@@ -44,16 +54,16 @@ function NoteItem({ note = new Note(), index }) {
4454 { /**Кнопки изменения порядка */ }
4555 < div className = "card-body pt-0" >
4656 < button
47- className = { `btn btn-light p-0` }
48- style = { { width : "1.8em" , height : "1.8em" , float : "right" , borderColor : "transparent" , backgroundColor : "transparent" } }
49- onClick = { ( ) => editNoteOrder ( index , Number ( note . order ) - 1 ) }
57+ className = { footerBtn . className }
58+ style = { footerBtn . style }
59+ onClick = { ( ) => editNoteOrder ( index , false ) }
5060 >
5161 ❱
5262 </ button >
5363 < button
54- className = { `btn btn-light p-0` }
55- style = { { width : "1.8em" , height : "1.8em" , float : "right" , borderColor : "transparent" , backgroundColor : "transparent" } }
56- onClick = { ( ) => editNoteOrder ( index , Number ( note . order ) + 1 ) }
64+ className = { footerBtn . className }
65+ style = { footerBtn . style }
66+ onClick = { ( ) => editNoteOrder ( index , true ) }
5767 >
5868 ❰
5969 </ button >
0 commit comments