diff --git a/comps/form/field/table-edit/TableEdit.tsx b/comps/form/field/table-edit/TableEdit.tsx index c336653..416e403 100755 --- a/comps/form/field/table-edit/TableEdit.tsx +++ b/comps/form/field/table-edit/TableEdit.tsx @@ -186,7 +186,11 @@ export const TableEdit: FC<{ css` height: 1px; border-collapse: collapse; - table-layout: auto; /* Kolom akan menyesuaikan konten */ + table-layout: auto; + + .field { + padding: 0px 0px 0px 10px; + } ` )} > diff --git a/comps/form/gen/gen-table-edit.ts b/comps/form/gen/gen-table-edit.ts index 2a4b7e0..0669ea1 100755 --- a/comps/form/gen/gen-table-edit.ts +++ b/comps/form/gen/gen-table-edit.ts @@ -468,10 +468,10 @@ export const genTableEdit = async ( { id: createId(), adv: { - js: '
\n Add\n
', + js: '
\n { lang.t("Add") }\n
', css: "", jsBuilt: - 'render(/* @__PURE__ */ React.createElement("div", { ...props, className: cx(props.className, "") }, "Add"));\n', + 'render(/* @__PURE__ */ React.createElement("div", { ...props, className: cx(props.className, "") }, lang.t("Add")));\n', }, dim: { h: "full", w: "full" }, name: "new_item", diff --git a/comps/list/TableList.tsx b/comps/list/TableList.tsx index 14752f7..62f4308 100755 --- a/comps/list/TableList.tsx +++ b/comps/list/TableList.tsx @@ -641,7 +641,6 @@ export const TableList: FC = ({ "c-flex c-items-center c-cursor-pointer" )} onClick={(e) => { - console.log(props.row); if (!local.pk) return; if (props?.row?.__children?.length > 0) { e.stopPropagation(); diff --git a/lang/en.ts b/lang/en.ts index e690229..f16d992 100755 --- a/lang/en.ts +++ b/lang/en.ts @@ -6,6 +6,7 @@ export const langEn = { Search: "Search", "Add Another": "Add Another", "Mark as": "Mark as ", + "Add": "Add", "Remove this file ?": "Remove this file ?", "Upload Multiple Files":"Upload Multiple Files", "Back To List": "Back To List", diff --git a/lang/id.ts b/lang/id.ts index b80e683..791a554 100755 --- a/lang/id.ts +++ b/lang/id.ts @@ -8,6 +8,7 @@ export const langId: Record = { Search: "Cari", "Add Another": "Tambah Baru", "Mark as": "Tandai sebagai", + "Add": "Tambah", "Remove this file ?": "Hapus file ini ?", "Upload Multiple Files": "Unggah Beberapa File", "Back To List": "Kembali ke List",