File tree Expand file tree Collapse file tree 5 files changed +25
-4
lines changed Expand file tree Collapse file tree 5 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 11node_modules /
22npm-debug.log 
3- dist /
4- ! dist /index.html 
3+ dist /app.js 
Original file line number Diff line number Diff line change 11< html > 
22	< head > 
33		< title > Lambda Blocks</ title > 
4+ 		< meta  charset ="UTF-8 "> 
5+ 
6+ 		< link  rel ="stylesheet " type ="text/css " href ="styles.css "> 
47	</ head > 
58	< body > 
69		< div  id ="main "> 
Original file line number Diff line number Diff line change 1+ html ,  body  {
2+   margin :  0 ;
3+   padding :  0 ;
4+ }
5+ 
6+ html ,  body ,  # main  {
7+   height :  100%  ;
8+ }
Original file line number Diff line number Diff line change 11import  React ,  {  PropTypes ,  Component  }  from  'react' 
22import  Module  from  './Module' 
33
4+ const  styles  =  { 
5+   float : 'left' , 
6+   height : '100%' , 
7+   width : '250px' , 
8+   overflow : 'auto' 
9+ } 
10+ 
411export  default  class  Library  extends  Component  { 
512  render ( )  { 
613    const  {  isFetching,  items }  =  this . props 
714
815    return  ( 
9-       < div > 
16+       < div   style = {   styles   } > 
1017        < h2 > Library</ h2 > 
1118        {  isFetching  && 
1219          < h3 > Loading...</ h3 > 
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ import { connect } from 'react-redux'
33import  {  fetchLibraryIfNeeded ,  invalidateLibrary  }  from  '../actions' 
44import  Library  from  '../components/Library' 
55
6+ const  styles  =  { 
7+   height : '100%' 
8+ } 
9+ 
610class  App  extends  Component  { 
711  constructor ( props )  { 
812    super ( props ) 
@@ -16,7 +20,7 @@ class App extends Component {
1620  render ( )  { 
1721    const  {  library }  =  this . props 
1822    return  ( 
19-       < div > 
23+       < div   style = {   styles   } > 
2024        < Library  {  ...library  }  /> 
2125      </ div > 
2226    ) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments