This commit is contained in:
insvrgent
2025-02-10 16:00:27 +07:00
parent 49f6b37905
commit 2a762a9610
4 changed files with 42 additions and 33 deletions

View File

@@ -496,7 +496,7 @@ const ItemLister = ({
key={itemTypeId}
className={`${styles["item-lister"]} ${isEdit ? styles["fullscreen"] : ""
}`}
style={{ paddingBottom: isEdit ? "28vh" : "" }}
style={{ paddingBottom: isEdit ? "258px" : "" }}
>
{(isEdit && isFirstStep || !isEdit) &&
@@ -769,11 +769,11 @@ const ItemLister = ({
onClick={toggleAddNewItem}
style={{
display: "inline-block",
height: "159px",
fontSize: "50px",
height: "120px",
fontSize: "20px",
}}
>
+
Tambah item +
</button>
)}
{isAddingNewItem && (
@@ -813,7 +813,7 @@ const ItemLister = ({
/>
)}
<h3>
&nbsp;{item.availability ? "tersedia" : "tidak tersedia"} &nbsp;
&nbsp;{item.availability ? "Tersedia" : "Tidak tersedia"} &nbsp;
</h3>
<div
style={{
@@ -885,7 +885,7 @@ const ItemLister = ({
<div className={styles["itemWrapper"]}>
{isEditMode && isEditItem != item.itemId && (
<div className={styles["editModeLayout"]}>
<div style={{display: 'flex', alignItems: 'center'}}>
<div style={{display: 'flex', alignItems: 'center', height: '40px', marginLeft: '7.5vw'}}>
{isEditMode && (
<Switch
onChange={() => handleChange(item.itemId)}
@@ -893,11 +893,11 @@ const ItemLister = ({
/>
)}
<h3>
&nbsp;{item.availability ? "tersedia" : "tidak tersedia"}
&nbsp;{item.availability ? "Tersedia" : "Tidak tersedia"}
</h3>
</div>
<div style={{display: 'flex', alignItems: 'center'}}>
<div onClick={() => editItem(item.itemId)} style={{display: 'flex', alignItems: 'center', height: '40px', marginRight: '7.5vw'}}>
<div
style={{
width: '32px',
@@ -907,7 +907,6 @@ const ItemLister = ({
alignItems: 'center', // Center vertically
cursor: 'pointer'
}}
onClick={() => editItem(item.itemId)}
>
<svg
fill="white"