@@ -26,7 +26,7 @@ export function ShowComponentField({
2626 } ) ;
2727
2828 return (
29- < div className = "w-full flex items-center" >
29+ < div className = "flex w-full items-center" >
3030 < label className = "w-full" >
3131 { name }
3232 < span className = { def . optional ? "text-cyan-700" : "text-red-700" } >
@@ -35,7 +35,7 @@ export function ShowComponentField({
3535 </ label >
3636 { modified && (
3737 < button
38- className = "flex justify-center items-center min-w- [1.7rem] h- [1.7rem] border-1 rounded-sm shadow-brutal mr-1 "
38+ className = "border-1 shadow-brutal mr-1 flex h- [1.7rem] min-w- [1.7rem] items-center justify-center rounded-sm "
3939 // Ignore label events
4040 onClick = { ( ) => {
4141 setValue ( def . default ) ;
@@ -59,7 +59,7 @@ export function ShowComponentField({
5959 { def . options . length ? (
6060 < select
6161 defaultValue = { def . default as string }
62- onChange = { ( e ) => {
62+ onChange = { e => {
6363 setModified ( true ) ;
6464 setValue ( e . currentTarget . value ) ;
6565 } }
@@ -81,9 +81,9 @@ export function ShowComponentField({
8181 </ select >
8282 ) : (
8383 < textarea
84- className = "max-w-[150px] min- h-[1.7rem] h-[1.7rem] border-1 rounded-sm shadow-brutal px-1"
84+ className = "border-1 shadow-brutal h-[1.7rem] min- h-[1.7rem] max-w-[150px] rounded-sm px-1"
8585 value = { value as string }
86- onChange = { ( ev ) => {
86+ onChange = { ev => {
8787 setModified ( true ) ;
8888 setValue ( ev . currentTarget . value ) ;
8989 } }
@@ -93,7 +93,7 @@ export function ShowComponentField({
9393 ) : def . type === "boolean" ? (
9494 < >
9595 < button
96- className = "flex justify-center items-center min-w- [1.7rem] h- [1.7rem] border-1 shadow-brutal rounded-sm cursor-pointer "
96+ className = "border-1 shadow-brutal flex h- [1.7rem] min-w- [1.7rem] cursor-pointer items-center justify-center rounded-sm "
9797 onClick = { ( ) => {
9898 setModified ( true ) ;
9999 setValue ( ! props . value ) ;
@@ -102,27 +102,27 @@ export function ShowComponentField({
102102 < span
103103 className = {
104104 ( props . value ? "block" : "hidden" ) +
105- " bg-black w -[1rem] h -[1rem] rounded-xs "
105+ " rounded-xs h -[1rem] w -[1rem] bg-black "
106106 }
107107 />
108108 </ button >
109109 </ >
110110 ) : def . type === "object" ? (
111111 < input
112112 disabled
113- className = "max-w-[150px] h-[1.7rem] border-1 rounded-sm shadow-brutal px-1 bg-gray-300 cursor-not-allowed "
113+ className = "border-1 shadow-brutal h-[1.7rem] max-w-[150px] cursor-not-allowed rounded-sm bg-gray-300 px-1 "
114114 value = "object"
115115 />
116116 ) : def . type === "function" ? (
117117 < input
118118 disabled
119- className = "w-[150px] h-[1.7rem] border-1 rounded-sm shadow-brutal px-1 bg-gray-300 cursor-not-allowed "
119+ className = "border-1 shadow-brutal h-[1.7rem] w-[150px] cursor-not-allowed rounded-sm bg-gray-300 px-1 "
120120 value = "function"
121121 />
122122 ) : def . type === "callback" ? (
123123 < p
124124 className = {
125- "min-w-[150px] h-[1.7rem] border-1 rounded-sm shadow-brutal px-1 text-center " +
125+ "border-1 shadow-brutal h-[1.7rem] min-w-[150px] rounded-sm px-1 text-center " +
126126 ( props . value ? "bg-green-400" : "" )
127127 }
128128 >
0 commit comments