Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue 357 fixed preview button blocking #363

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const ActionButtons = ({
numRows,
setNumRows,
}) => (
<div className="fixed bottom-5 bg-white left-1/2 -translate-x-1/2 px-40 rounded flex gap-2 justify-center items-center py-2 dark:bg-gray-800">
<div className="fixed bottom-1 bg-white left-1/2 -translate-x-1/2 px-40 rounded flex gap-2 justify-center items-center py-2 dark:bg-gray-800">
<button
onClick={() => {
setIsLoading(true);
Expand Down
2 changes: 1 addition & 1 deletion src/app/customizer/JsonGenerator/components/CardForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function CardForm({ isDarkMode }) {

return (
<Reorder.Group
className={`mt-10 ${isDarkMode ? "dark" : ""}`}
className={`mt-5 ${isDarkMode ? "dark" : ""}`}
axis="y"
values={fields}
onReorder={setFields}
Expand Down
36 changes: 19 additions & 17 deletions src/app/customizer/JsonGenerator/components/FieldsSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,25 @@ export const FieldsSection = ({
categoryData,
}) => (
<div className="flex flex-col">
<FieldHeader />
{fields.map((field) => (
<Reorder.Item
key={field.id}
value={field}
className="flex items-center bg-black-200 w-fit"
>
<Item
field={field}
handleChange={handleFieldChange}
removeField={removeField}
controls={controls}
categoryData={categoryData}
isDarkMode={isDarkMode}
/>
</Reorder.Item>
))}
{!!fields.length && <FieldHeader />}
<div className="h-40 overflow-auto">
{fields.map((field) => (
<Reorder.Item
key={field.id}
value={field}
className="flex items-center bg-black-200 w-fit"
>
<Item
field={field}
handleChange={handleFieldChange}
removeField={removeField}
controls={controls}
categoryData={categoryData}
isDarkMode={isDarkMode}
/>
</Reorder.Item>
))}
</div>
<AddFieldButton onClick={addField} />
</div>
);
2 changes: 1 addition & 1 deletion src/app/customizer/JsonGenerator/components/Heroish.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function Heroish() {
return (
<div className="w-full mt-20">
<div className="w-full mt-6">
<h1 className="relative z-10 font-sans text-lg font-bold text-center text-transparent md:text-7xl bg-clip-text bg-gradient-to-b from-neutral-200 to-neutral-600">
Json Generator
</h1>
Expand Down
2 changes: 0 additions & 2 deletions src/app/customizer/JsonGenerator/components/Init.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ export const initialFields = () => [
{ id: uuidv4(), fieldName: "id", fieldType: "" },
{ id: uuidv4(), fieldName: "first_name", fieldType: "" },
{ id: uuidv4(), fieldName: "last_name", fieldType: "" },
{ id: uuidv4(), fieldName: "email", fieldType: "" },
{ id: uuidv4(), fieldName: "gender", fieldType: "" },
];
Loading