@@ -158,45 +158,45 @@ const generateUnformattedCode = (
158
158
let { height, alignItems, backgroundColor, display, flexDirection, width, justifyContent } = childElement . style ;
159
159
let w , h , items , bg , d , flexDir , justCon , cssClasses ;
160
160
if ( childElement . style . alignItems ) {
161
- if ( alignItems === "center" ) items = "items-center, " ;
162
- else if ( alignItems === "flex-start" ) items = "items-start, " ;
163
- else if ( alignItems === "flex-end" ) items = "items-end, " ;
164
- else if ( alignItems === "stretch" ) items = "items-stretch, " ;
161
+ if ( alignItems === "center" ) items = "items-center " ;
162
+ else if ( alignItems === "flex-start" ) items = "items-start " ;
163
+ else if ( alignItems === "flex-end" ) items = "items-end " ;
164
+ else if ( alignItems === "stretch" ) items = "items-stretch " ;
165
165
}
166
166
if ( childElement . style . backgroundColor ) {
167
- bg = `bg-[${ backgroundColor } ], `
167
+ bg = `bg-[${ backgroundColor } ] `
168
168
}
169
169
if ( childElement . style . display ) {
170
- if ( display === "flex" ) d = "flex, "
171
- else if ( display === "inline-block" ) d = "inline-block, "
172
- else if ( display === "block" ) d = "block, "
173
- else if ( display === "none" ) d = "hidden, "
170
+ if ( display === "flex" ) d = "flex "
171
+ else if ( display === "inline-block" ) d = "inline-block "
172
+ else if ( display === "block" ) d = "block "
173
+ else if ( display === "none" ) d = "hidden "
174
174
}
175
175
if ( childElement . style . flexDirection ) {
176
- if ( flexDirection === "column" ) flexDir = "flex-col, "
176
+ if ( flexDirection === "column" ) flexDir = "flex-col "
177
177
}
178
178
if ( childElement . style . height ) {
179
- if ( height === "100%" ) h = "h-full, "
180
- else if ( height === "50%" ) h = "h-1/2, "
181
- else if ( height === "25%" ) h = "h-1/4, "
182
- else if ( height === "auto" ) h = "auto, "
179
+ if ( height === "100%" ) h = "h-full "
180
+ else if ( height === "50%" ) h = "h-1/2 "
181
+ else if ( height === "25%" ) h = "h-1/4 "
182
+ else if ( height === "auto" ) h = "auto "
183
183
}
184
184
if ( childElement . style . justifyContent ) {
185
- if ( justifyContent === "center" ) justCon = "justify-center, "
186
- else if ( justifyContent === "flex-start" ) justCon = "justify-start, "
187
- else if ( justifyContent === "space-between" ) justCon = "justify-between, "
188
- else if ( justifyContent === "space-around" ) justCon = "justify-around, "
189
- else if ( justifyContent === "flex-end" ) justCon = "justify-end, "
190
- else if ( justifyContent === "space-evenly" ) justCon = "justify-evenly, "
185
+ if ( justifyContent === "center" ) justCon = "justify-center "
186
+ else if ( justifyContent === "flex-start" ) justCon = "justify-start "
187
+ else if ( justifyContent === "space-between" ) justCon = "justify-between "
188
+ else if ( justifyContent === "space-around" ) justCon = "justify-around "
189
+ else if ( justifyContent === "flex-end" ) justCon = "justify-end "
190
+ else if ( justifyContent === "space-evenly" ) justCon = "justify-evenly "
191
191
}
192
192
if ( childElement . style . width ) {
193
- if ( width === "100%" ) w = "w-full, "
194
- else if ( width === "50%" ) w = "w-1/2, "
195
- else if ( width === "25%" ) w = "w-1/4, "
196
- else if ( width === "auto" ) w = "w-auto, "
193
+ if ( width === "100%" ) w = "w-full "
194
+ else if ( width === "50%" ) w = "w-1/2 "
195
+ else if ( width === "25%" ) w = "w-1/4 "
196
+ else if ( width === "auto" ) w = "w-auto "
197
197
}
198
198
if ( childElement . attributes && childElement . attributes . cssClasses ) {
199
- cssClasses = `${ childElement . attributes . cssClasses } , `
199
+ cssClasses = `${ childElement . attributes . cssClasses } `
200
200
}
201
201
customizationDetails += ' ' + `className = "${ cssClasses ? cssClasses : '' } ${ w ? w : '' } ${ h ? h : '' } ${ justCon ? justCon : '' } ${ flexDir ? flexDir : '' } ${ d ? d : '' } ${ bg ? bg : '' } ${ items ? items : '' } "` ;
202
202
}
0 commit comments