Selaa lähdekoodia

Merge pull request #3264 from weseek/imprv/modify-layout-of-link-edit-modal

move buttons to footer
Yuki Takei 5 vuotta sitten
vanhempi
sitoutus
9a96c6afe6
1 muutettua tiedostoa jossa 9 lisäystä ja 10 poistoa
  1. 9 10
      src/client/js/components/PageEditor/LinkEditModal.jsx

+ 9 - 10
src/client/js/components/PageEditor/LinkEditModal.jsx

@@ -5,6 +5,7 @@ import {
   Modal,
   Modal,
   ModalHeader,
   ModalHeader,
   ModalBody,
   ModalBody,
+  ModalFooter,
   Popover,
   Popover,
   PopoverBody,
   PopoverBody,
 } from 'reactstrap';
 } from 'reactstrap';
@@ -445,17 +446,15 @@ class LinkEditModal extends React.PureComponent {
               {this.renderLinkPreview()}
               {this.renderLinkPreview()}
             </div>
             </div>
           </div>
           </div>
-          <div className="row">
-            <div className="col-12 text-center">
-              <button type="button" className="btn btn-sm btn-outline-secondary mx-1" onClick={this.hide}>
-                {t('Cancel')}
-              </button>
-              <button type="submit" className="btn btn-sm btn-primary mx-1" onClick={this.save}>
-                {t('Done')}
-              </button>
-            </div>
-          </div>
         </ModalBody>
         </ModalBody>
+        <ModalFooter>
+          <button type="button" className="btn btn-sm btn-outline-secondary mx-1" onClick={this.hide}>
+            {t('Cancel')}
+          </button>
+          <button type="submit" className="btn btn-sm btn-primary mx-1" onClick={this.save}>
+            {t('Done')}
+          </button>
+        </ModalFooter>
       </Modal>
       </Modal>
     );
     );
   }
   }