Procházet zdrojové kódy

add checkbox adjust layout

sooouh před 6 roky
rodič
revize
e06098e22e

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

@@ -59,14 +59,14 @@ class CustomizeCssSetting extends React.Component {
           </CardBody>
           </CardBody>
         </Card>
         </Card>
         <div className="form-group">
         <div className="form-group">
-          <div className="col-xs-12">
+          <div className="col-12">
             <CustomCssEditor
             <CustomCssEditor
               // The value passed must be immutable
               // The value passed must be immutable
               value={this.state.editorInputValue}
               value={this.state.editorInputValue}
               onChange={(inputValue) => { adminCustomizeContainer.changeCustomizeCss(inputValue) }}
               onChange={(inputValue) => { adminCustomizeContainer.changeCustomizeCss(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') }

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

@@ -70,14 +70,14 @@ class CustomizeHeaderSetting extends React.Component {
           </pre>
           </pre>
         </div>
         </div>
 
 
-        <div className="col-xs-12">
+        <div className="col-12">
           <CustomHeaderEditor
           <CustomHeaderEditor
             // The value passed must be immutable
             // The value passed must be immutable
             value={this.state.editorInputValue}
             value={this.state.editorInputValue}
             onChange={(inputValue) => { adminCustomizeContainer.changeCustomizeHeader(inputValue) }}
             onChange={(inputValue) => { adminCustomizeContainer.changeCustomizeHeader(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>
             <i className="fa fa-fw fa-keyboard-o" aria-hidden="true"></i>
             { t('customize_page.ctrl_space') }
             { t('customize_page.ctrl_space') }

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

@@ -98,14 +98,15 @@ class CustomizeHighlightSetting extends React.Component {
 
 
         <div className="form-group row">
         <div className="form-group row">
           <div className="offset-3 col-6 text-left">
           <div className="offset-3 col-6 text-left">
-            <div className="checkbox checkbox-success">
+            <div className="custom-control custom-checkbox">
               <input
               <input
                 type="checkbox"
                 type="checkbox"
+                className="custom-control-input"
                 id="highlightBorder"
                 id="highlightBorder"
                 checked={adminCustomizeContainer.state.isHighlightJsStyleBorderEnabled}
                 checked={adminCustomizeContainer.state.isHighlightJsStyleBorderEnabled}
                 onChange={() => { adminCustomizeContainer.switchHighlightJsStyleBorder() }}
                 onChange={() => { adminCustomizeContainer.switchHighlightJsStyleBorder() }}
               />
               />
-              <label htmlFor="highlightBorder">
+              <label className="custom-control-label" htmlFor="highlightBorder">
                 <strong>Border</strong>
                 <strong>Border</strong>
               </label>
               </label>
             </div>
             </div>