File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,30 +115,24 @@ function DatabaseTableWidget() {
115115 < AutoLayout
116116 direction = "vertical"
117117 >
118- < Frame
118+ < AutoLayout
119119 width = { 400 }
120120 height = { 48 }
121+ cornerRadius = { {
122+ topLeft : 16 ,
123+ topRight : 16 ,
124+ } }
125+ fill = { theme }
126+ padding = { {
127+ horizontal : 16 ,
128+ } }
129+ horizontalAlignItems = "center"
130+ verticalAlignItems = "center"
121131 >
122- < Rectangle
123- width = { 400 }
124- height = { 48 }
125- x = { 0 }
126- y = { 0 }
127- fill = { theme }
128- cornerRadius = { {
129- topLeft : 16 ,
130- topRight : 16 ,
131- } }
132- />
133132 < Input
134- width = { 368 }
135- height = { 32 }
136- inputFrameProps = { {
137- x : 16 ,
138- y : 8 ,
139- } }
140- fontWeight = { 700 }
133+ width = "fill-parent"
141134 inputBehavior = "truncate"
135+ fontWeight = { 700 }
142136 fill = "#ffffff"
143137 horizontalAlignText = "center"
144138 verticalAlignText = "center"
@@ -147,56 +141,50 @@ function DatabaseTableWidget() {
147141 onTextEditEnd = { ( event ) => setTableName ( event . characters ) }
148142 placeholder = "Table Name"
149143 />
150- </ Frame >
144+ </ AutoLayout >
151145
152146 { columns . map ( ( column ) => {
153147 let { icon, color } = getKeyDecorator ( column )
154148
155149 return (
156- < Frame
150+ < AutoLayout
157151 width = { 400 }
158152 height = { 48 }
153+ padding = { {
154+ right : 16 ,
155+ } }
159156 key = { column . name }
157+ stroke = "#e6e6e6"
158+ fill = "#ffffff"
159+ verticalAlignItems = "center"
160+ horizontalAlignItems = "center"
160161 >
161- < Rectangle
162- width = { 400 }
163- height = { 48 }
164- stroke = "#e6e6e6"
165- fill = "#ffffff"
166- />
167- < AutoLayout
168- width = { 384 }
169- height = { 48 }
170- verticalAlignItems = "center"
171- horizontalAlignItems = "center"
162+ < Text
163+ width = { 32 }
164+ height = { 32 }
165+ fontSize = { 18 }
166+ fontFamily = "Font Awesome 5 Free"
167+ fontWeight = { 900 }
168+ fill = { color }
169+ verticalAlignText = "center"
170+ horizontalAlignText = "center"
171+ >
172+ { icon }
173+ </ Text >
174+ < Text
175+ width = "fill-parent"
176+ fontFamily = "Fira Code"
177+ fontSize = { 18 }
178+ >
179+ { column . name }
180+ </ Text >
181+ < Text
182+ fontFamily = "Fira Code"
183+ fontSize = { 18 }
172184 >
173- < Text
174- width = { 32 }
175- height = { 32 }
176- fontSize = { 18 }
177- fontFamily = "Font Awesome 5 Free"
178- fontWeight = { 900 }
179- fill = { color }
180- verticalAlignText = "center"
181- horizontalAlignText = "center"
182- >
183- { icon }
184- </ Text >
185- < Text
186- width = "fill-parent"
187- fontFamily = "Fira Code"
188- fontSize = { 18 }
189- >
190- { column . name }
191- </ Text >
192- < Text
193- fontFamily = "Fira Code"
194- fontSize = { 18 }
195- >
196- { column . type } { column . nullable ? "?" : "" }
197- </ Text >
198- </ AutoLayout >
199- </ Frame >
185+ { column . type } { column . nullable ? "?" : "" }
186+ </ Text >
187+ </ AutoLayout >
200188 )
201189 } ) }
202190 </ AutoLayout >
You can’t perform that action at this time.
0 commit comments