diff --git a/components/_ShareComponent/NewWrapper_V2.tsx b/components/_ShareComponent/NewWrapper_V2.tsx index fa0324b..9a23ec7 100644 --- a/components/_ShareComponent/NewWrapper_V2.tsx +++ b/components/_ShareComponent/NewWrapper_V2.tsx @@ -45,10 +45,14 @@ interface BaseProps { */ contentPaddingBottom?: number; /** - * Padding untuk content container (default: 16) - * Set to 0 untuk tidak ada padding, atau custom value sesuai kebutuhan + * Padding Top untuk content container (default: 8) */ - contentPadding?: number; + contentPaddingTop?: number; + /** + * Padding Horizontal untuk content container (default: 0) + * Set ke 16 atau lebih jika butuh spacing di kiri-kanan + */ + contentPaddingHorizontal?: number; } interface StaticModeProps extends BaseProps { @@ -83,7 +87,8 @@ export function NewWrapper_V2(props: NewWrapper_V2_Props) { enableKeyboardHandling = false, keyboardScrollOffset = 100, contentPaddingBottom = 80, // Default 80 untuk navigasi device - contentPadding = 16, // Default 16 untuk padding konsisten + contentPaddingTop = 8, // Default 8 untuk spacing atas + contentPaddingHorizontal = 0, // Default 0 agar aman untuk layout existing } = props; const assetBackground = require("../../assets/images/main-background.png"); @@ -137,8 +142,9 @@ export function NewWrapper_V2(props: NewWrapper_V2_Props) { ListEmptyComponent={listProps.ListEmptyComponent} contentContainerStyle={{ flexGrow: 1, + paddingTop: contentPaddingTop, + paddingHorizontal: contentPaddingHorizontal, paddingBottom: (footerComponent && !hideFooter ? OS_HEIGHT : 0) + contentPaddingBottom, - padding: contentPadding, }} keyboardShouldPersistTaps="handled" /> @@ -186,8 +192,9 @@ export function NewWrapper_V2(props: NewWrapper_V2_Props) { style={{ flex: 1 }} contentContainerStyle={{ flexGrow: 1, + paddingTop: contentPaddingTop, + paddingHorizontal: contentPaddingHorizontal, paddingBottom: (footerComponent && !hideFooter ? OS_HEIGHT : 0) + contentPaddingBottom, - padding: contentPadding, }} keyboardShouldPersistTaps="handled" showsVerticalScrollIndicator={false} diff --git a/screens/Job/MainViewStatus2.tsx b/screens/Job/MainViewStatus2.tsx index d4ee1c6..b8951f2 100644 --- a/screens/Job/MainViewStatus2.tsx +++ b/screens/Job/MainViewStatus2.tsx @@ -87,6 +87,7 @@ export default function Job_MainViewStatus2() { return ( {scrollComponent}} listData={pagination.listData} renderItem={renderJobItem} diff --git a/screens/Job/ScreenArchive2.tsx b/screens/Job/ScreenArchive2.tsx index 12d8978..7bcbb30 100644 --- a/screens/Job/ScreenArchive2.tsx +++ b/screens/Job/ScreenArchive2.tsx @@ -56,6 +56,7 @@ export default function Job_ScreenArchive2() { return ( diff --git a/screens/Job/ScreenJobCreate.tsx b/screens/Job/ScreenJobCreate.tsx index a0ef1e6..44866eb 100644 --- a/screens/Job/ScreenJobCreate.tsx +++ b/screens/Job/ScreenJobCreate.tsx @@ -121,6 +121,7 @@ export function Job_ScreenCreate() { diff --git a/screens/Job/ScreenJobEdit.tsx b/screens/Job/ScreenJobEdit.tsx index d8f3f81..53a3a81 100644 --- a/screens/Job/ScreenJobEdit.tsx +++ b/screens/Job/ScreenJobEdit.tsx @@ -138,6 +138,7 @@ export function Job_ScreenEdit() { {isLoadData ? (