RIFT-14134, RIFT-14548: RO CRU and Instantiate Data Centers
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
diff --git a/skyquake/framework/widgets/panel/panel.jsx b/skyquake/framework/widgets/panel/panel.jsx
index e8a3118..4ef7c89 100644
--- a/skyquake/framework/widgets/panel/panel.jsx
+++ b/skyquake/framework/widgets/panel/panel.jsx
@@ -1,5 +1,5 @@
/*
- *
+ *
* Copyright 2016 RIFT.IO Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -25,20 +25,21 @@
render() {
let self = this;
let {children, className, title, ...props} = self.props;
- let classRoot = className ? ' ' + className : ' '
+ let classRoot = className ? ' ' + className : ' ';
+ let hasCorners = this.props['no-corners'];
let titleTag = title ? <header className="skyquakePanel-title">{title}</header> : '';
return (
<section className={'skyquakePanel' + classRoot} style={props.style}>
- <i className="corner-accent top left"></i>
- <i className="corner-accent top right"></i>
+ { !hasCorners ? <i className="corner-accent top left"></i> : null }
+ { !hasCorners ? <i className="corner-accent top right"></i> : null }
{titleTag}
<div className="skyquakePanel-wrapper">
<div className={(classRoot ? 'skyquakePanel-body ' + decorateClassNames(classRoot, '-body') : 'skyquakePanel-body')}>
{children}
</div>
</div>
- <i className="corner-accent bottom left"></i>
- <i className="corner-accent bottom right"></i>
+ { !hasCorners ? <i className="corner-accent bottom left"></i> : null }
+ { !hasCorners ? <i className="corner-accent bottom right"></i> : null }
</section>
)
}
@@ -50,7 +51,8 @@
export class PanelWrapper extends Component {
render() {
- return (<div className={'skyquakePanelWrapper'}>
+ return (
+ <div className={'skyquakePanelWrapper ' + this.props.className} style={this.props.style}>
{this.props.children}
</div>)
}
@@ -60,7 +62,7 @@
function decorateClassNames(className, addendum) {
- return className.split(' ').map(function(c) {
+ return className.trim().split(' ').map(function(c) {
return c + addendum
}).join(' ');
}
diff --git a/skyquake/framework/widgets/panel/panel.scss b/skyquake/framework/widgets/panel/panel.scss
index ff36bbf..2a31b1c 100644
--- a/skyquake/framework/widgets/panel/panel.scss
+++ b/skyquake/framework/widgets/panel/panel.scss
@@ -1,5 +1,5 @@
/*
- *
+ *
* Copyright 2016 RIFT.IO Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -55,6 +55,12 @@
}
}
+.skyquakePanelWrapper.column {
+ .skyquakePanel-wrapper {
+ height:auto;
+ }
+}
+
/* Style for storybook */
body{
height:100%;