@@ -327,44 +327,46 @@ class Collection extends React.Component {
327327 </ Helmet >
328328 { this . _renderLoader ( ) }
329329 { this . hasCollection ( ) && this . _renderCollectionMetadata ( ) }
330- < div className = "collection-table-wrapper" >
331- { this . _renderEmptyTable ( ) }
332- { this . hasCollectionItems ( ) &&
333- < table className = "sketches-table" summary = "table containing all collections" >
334- < thead >
335- < tr >
336- { this . _renderFieldHeader ( 'name' , 'Name' ) }
337- { this . _renderFieldHeader ( 'createdAt' , 'Date Added' ) }
338- { this . _renderFieldHeader ( 'user' , 'Owner' ) }
339- < th scope = "col" > </ th >
340- </ tr >
341- </ thead >
342- < tbody >
343- { this . props . collection . items . map ( item =>
344- ( < CollectionItemRow
345- key = { item . id }
346- item = { item }
347- user = { this . props . user }
348- username = { this . getUsername ( ) }
349- collection = { this . props . collection }
350- /> ) ) }
351- </ tbody >
352- </ table >
353- }
354- {
355- this . state . isAddingSketches && (
356- < Overlay
357- title = "Add sketch"
358- actions = { < SketchSearchbar /> }
359- closeOverlay = { this . hideAddSketches }
360- isFixedHeight
361- >
362- < div className = "collection-add-sketch" >
363- < AddToCollectionSketchList username = { this . props . username } collection = { this . props . collection } />
364- </ div >
365- </ Overlay >
366- )
367- }
330+ < div className = "collection-content" >
331+ < div className = "collection-table-wrapper" >
332+ { this . _renderEmptyTable ( ) }
333+ { this . hasCollectionItems ( ) &&
334+ < table className = "sketches-table" summary = "table containing all collections" >
335+ < thead >
336+ < tr >
337+ { this . _renderFieldHeader ( 'name' , 'Name' ) }
338+ { this . _renderFieldHeader ( 'createdAt' , 'Date Added' ) }
339+ { this . _renderFieldHeader ( 'user' , 'Owner' ) }
340+ < th scope = "col" > </ th >
341+ </ tr >
342+ </ thead >
343+ < tbody >
344+ { this . props . collection . items . map ( item =>
345+ ( < CollectionItemRow
346+ key = { item . id }
347+ item = { item }
348+ user = { this . props . user }
349+ username = { this . getUsername ( ) }
350+ collection = { this . props . collection }
351+ /> ) ) }
352+ </ tbody >
353+ </ table >
354+ }
355+ {
356+ this . state . isAddingSketches && (
357+ < Overlay
358+ title = "Add sketch"
359+ actions = { < SketchSearchbar /> }
360+ closeOverlay = { this . hideAddSketches }
361+ isFixedHeight
362+ >
363+ < div className = "collection-add-sketch" >
364+ < AddToCollectionSketchList username = { this . props . username } collection = { this . props . collection } />
365+ </ div >
366+ </ Overlay >
367+ )
368+ }
369+ </ div >
368370 </ div >
369371 </ section >
370372 ) ;
0 commit comments