kulley преди 6 години
родител
ревизия
22eeaedf46
променени са 4 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. 1 1
      src/pages/home/detail/index.css
  2. 2 1
      src/pages/home/detail/index.js
  3. 0 1
      src/pages/home/kind/index.css
  4. 2 1
      src/pages/home/kind/index.js

+ 1 - 1
src/pages/home/detail/index.css

@@ -1,5 +1,5 @@
 .detail-wrap {
-    height: 100%;
+
 }
 
 .detail-wrapper {

+ 2 - 1
src/pages/home/detail/index.js

@@ -25,8 +25,9 @@ class Detail extends Component {
 
     render() {
         let {id} = this.state
+        let contentHeight = window.innerHeight
         return (
-            <div className='detail-wrap'>
+            <div className='detail-wrap' style={{height: contentHeight}}>
                 <div className='detail-navbar-wrap'>
                     <NavBar
                         className='detail-navbar'

+ 0 - 1
src/pages/home/kind/index.css

@@ -1,5 +1,4 @@
 .kind-wrap {
-    height: 100%
 }
 
 .kind-search-wrap {

+ 2 - 1
src/pages/home/kind/index.js

@@ -28,8 +28,9 @@ class Kind extends Component {
 
     render() {
         let {id} = this.state
+        let contentHeight = window.innerHeight
         return (
-            <div className='kind-wrap'>
+            <div className='kind-wrap'  style={{height: contentHeight}}>
                 <div className='kind-navbar-wrap'>
                     <NavBar
                         className='kind-navbar'