Browse Source

adjust layout

sooouh 6 years ago
parent
commit
b8bd8213f7

+ 3 - 2
src/client/js/components/Admin/Customize/CustomizeFunctionOption.jsx

@@ -7,14 +7,15 @@ class CustomizeFunctionOption extends React.PureComponent {
   render() {
   render() {
     return (
     return (
       <React.Fragment>
       <React.Fragment>
-        <div className="checkbox checkbox-success">
+        <div className="custom-control custom-switch checkbox-success">
           <input
           <input
+            className="custom-control-input"
             type="checkbox"
             type="checkbox"
             id={this.props.optionId}
             id={this.props.optionId}
             checked={this.props.isChecked}
             checked={this.props.isChecked}
             onChange={this.props.onChecked}
             onChange={this.props.onChecked}
           />
           />
-          <label htmlFor={this.props.optionId}>
+          <label className="custom-control-label" htmlFor={this.props.optionId}>
             <strong>{this.props.label}</strong>
             <strong>{this.props.label}</strong>
           </label>
           </label>
         </div>
         </div>

+ 15 - 15
src/client/js/components/Admin/Customize/CustomizeScriptSetting.jsx

@@ -67,37 +67,37 @@ class CustomizeScriptSetting extends React.Component {
           </CardBody>
           </CardBody>
         </Card>
         </Card>
 
 
-        <div className="help-block">
+        <div className="form-text text-muted">
           Placeholders:<br />
           Placeholders:<br />
           (Available after <code>load</code> event)
           (Available after <code>load</code> event)
-          <dl className="dl-horizontal">
-            <dt><code>$</code></dt>
-            <dd>jQuery instance</dd>
-            <dt><code>appContainer</code></dt>
-            <dd>GROWI App <a href="https://github.com/jamiebuilds/unstated">Unstated Container</a></dd>
-            <dt><code>growiRenderer</code></dt>
-            <dd>GROWI Renderer origin instance</dd>
-            <dt><code>growiPlugin</code></dt>
-            <dd>GROWI Plugin Manager instance</dd>
-            <dt><code>Crowi</code></dt>
-            <dd>Crowi legacy instance (jQuery based)</dd>
+          <dl className="row">
+            <dt className="col-2 text-right"><code>$</code></dt>
+            <dd className="col-10">jQuery instance</dd>
+            <dt className="col-2 text-right"><code>appContainer</code></dt>
+            <dd className="col-10">GROWI App <a href="https://github.com/jamiebuilds/unstated">Unstated Container</a></dd>
+            <dt className="col-2 text-right"><code>growiRenderer</code></dt>
+            <dd className="col-10">GROWI Renderer origin instance</dd>
+            <dt className="col-2 text-right"><code>growiPlugin</code></dt>
+            <dd className="col-10">GROWI Plugin Manager instance</dd>
+            <dt className="col-2 text-right"><code>Crowi</code></dt>
+            <dd className="col-10">Crowi legacy instance (jQuery based)</dd>
           </dl>
           </dl>
         </div>
         </div>
 
 
-        <div className="help-block">
+        <div className="form-text">
           Examples:
           Examples:
           <pre className="hljs"><code>{this.getExampleCode()}</code></pre>
           <pre className="hljs"><code>{this.getExampleCode()}</code></pre>
         </div>
         </div>
 
 
         <div className="form-group">
         <div className="form-group">
-          <div className="col-xs-12">
+          <div className="col-12">
             <CustomScriptEditor
             <CustomScriptEditor
               // The value passed must be immutable
               // The value passed must be immutable
               value={this.state.editorInputValue}
               value={this.state.editorInputValue}
               onChange={(inputValue) => { adminCustomizeContainer.changeCustomizeScript(inputValue) }}
               onChange={(inputValue) => { adminCustomizeContainer.changeCustomizeScript(inputValue) }}
             />
             />
           </div>
           </div>
-          <div className="col-xs-12">
+          <div className="col-12">
             <p className="help-block text-right">
             <p className="help-block text-right">
               <i className="fa fa-fw fa-keyboard-o" aria-hidden="true" />
               <i className="fa fa-fw fa-keyboard-o" aria-hidden="true" />
               { t('customize_page.ctrl_space') }
               { t('customize_page.ctrl_space') }