refactor: Update NewWrapper_V2 padding defaults

- Change default paddingTop to 8
- Change default paddingHorizontal to 0 (safe for existing layouts)
- Add explicit contentPaddingHorizontal={16} to Job screens
- Update interface documentation

This makes NewWrapper_V2 safer for mass migration while keeping
Job screens looking good with proper spacing.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-04-04 09:16:15 +08:00
parent b34bc3799e
commit 940d31bfdc
6 changed files with 18 additions and 6 deletions

View File

@@ -87,6 +87,7 @@ export default function Job_MainViewStatus2() {
return (
<NewWrapper_V2
contentPaddingHorizontal={16}
headerComponent={<View style={{ paddingTop: 8 }}>{scrollComponent}</View>}
listData={pagination.listData}
renderItem={renderJobItem}

View File

@@ -56,6 +56,7 @@ export default function Job_ScreenArchive2() {
return (
<NewWrapper_V2
contentPaddingHorizontal={16}
listData={pagination.listData}
renderItem={renderJobItem}
refreshControl={

View File

@@ -75,6 +75,7 @@ export default function Job_ScreenBeranda2() {
return (
<NewWrapper_V2
contentPaddingHorizontal={16}
hideFooter
headerComponent={
<View style={{ paddingTop: 8 }}>

View File

@@ -121,6 +121,7 @@ export function Job_ScreenCreate() {
<NewWrapper_V2
enableKeyboardHandling
keyboardScrollOffset={100}
contentPaddingHorizontal={16}
footerComponent={buttonSubmit()}
>
<StackCustom gap={"xs"}>

View File

@@ -138,6 +138,7 @@ export function Job_ScreenEdit() {
<NewWrapper_V2
enableKeyboardHandling
keyboardScrollOffset={100}
contentPaddingHorizontal={16}
footerComponent={buttonSubmit()}
>
{isLoadData ? (