shenwu 6 ماه پیش
والد
کامیت
31765fadb0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/components/TopNavBar/index.tsx

+ 2 - 2
src/components/TopNavBar/index.tsx

@@ -107,7 +107,7 @@ function CustomNavbar(WrappedComponent, props: Props) {
             let { navBar, capsuleWidth } = this.state
             const { indexStore: { navBarTop }, bookStore } = this.props.store
             let stateIndex = bookStore.workDirection
-            return <View style={{ height: navBar + navBarTop + 5 }}>
+            return <View style={{ height: '100vh'}}>
                 <View className='navbarWrap' style={{ paddingTop: navBarTop + 5, height: navBar, backgroundColor: isReloadBook ? bookStore.bookConfig?.off_on ? "#FFF" : "#363738" : "#FFF" }}>
                     <View className='content'>
                         {
@@ -153,7 +153,7 @@ function CustomNavbar(WrappedComponent, props: Props) {
                     </View>
                     <View style={{ width: capsuleWidth + 'px' }}></View>
                 </View>
-                <View style={{ paddingTop: (navBar + navBarTop + 5), height: `100vh`, boxSizing: 'border-box' }}>
+                <View style={{ paddingTop: (navBar + navBarTop + 5), height: `clac(100vh - ${(navBar + navBarTop + 5)}px)`, boxSizing: 'border-box' }}>
                     <WrappedComponent {...passThroughProps} stateIndex={stateIndex} navBar={navBar + navBarTop + 5} />
                 </View>
             </View>