Restructuring folders [ Broken ]
This commit is contained in:
1 parent
36b7b8629e
commit
776395520d
148 files changed
+238
-198
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import React from 'react';
|
||||
|
||||
export default (props) => {
|
||||
let height = 100;/* Percentage of width */
|
||||
|
||||
//TODO: Add more methods of resizing this box.
|
||||
if(props.ratioWidth && props.ratioHeight) {
|
||||
height = 100 / props.ratioWidth * props.ratioHeight;
|
||||
}
|
||||
|
||||
//Box Sizer
|
||||
return (
|
||||
<div className="o-box-sizer" style={{
|
||||
paddingBottom: height + '%'
|
||||
}} />
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user