Просмотр исходного кода

Merge pull request #2570 from weseek/imprv/adjust-bootstrap-class-for-buttons

Imprv/adjust bootstrap class for buttons
Yuki Takei 5 лет назад
Родитель
Сommit
6c3418c250
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/client/js/components/PageEditor/LinkEditModal.jsx

+ 3 - 3
src/client/js/components/PageEditor/LinkEditModal.jsx

@@ -248,7 +248,7 @@ class LinkEditModal extends React.PureComponent {
                       <button
                         type="button"
                         name={Linker.types.markdownLink}
-                        className={`btn btn-outline-secondary w-100 ${this.state.linkerType === Linker.types.markdownLink && 'active'}`}
+                        className={`btn btn-outline-secondary col ${this.state.linkerType === Linker.types.markdownLink && 'active'}`}
                         onClick={e => this.handleSelecteLinkerType(e.target.name)}
                       >
                         Markdown
@@ -256,7 +256,7 @@ class LinkEditModal extends React.PureComponent {
                       <button
                         type="button"
                         name={Linker.types.growiLink}
-                        className={`btn btn-outline-secondary w-100 ${this.state.linkerType === Linker.types.growiLink && 'active'}`}
+                        className={`btn btn-outline-secondary col ${this.state.linkerType === Linker.types.growiLink && 'active'}`}
                         onClick={e => this.handleSelecteLinkerType(e.target.name)}
                       >
                         Growi Original
@@ -265,7 +265,7 @@ class LinkEditModal extends React.PureComponent {
                         <button
                           type="button"
                           name={Linker.types.pukiwikiLink}
-                          className={`btn btn-outline-secondary w-100 ${this.state.linkerType === Linker.types.pukiwikiLink && 'active'}`}
+                          className={`btn btn-outline-secondary col ${this.state.linkerType === Linker.types.pukiwikiLink && 'active'}`}
                           onClick={e => this.handleSelecteLinkerType(e.target.name)}
                         >
                           Pukiwiki