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

WIP: reconstruct layouts

* copy button
Yuki Takei 8 лет назад
Родитель
Сommit
a42094f9f2

+ 1 - 1
resource/js/components/CopyButton.js

@@ -20,9 +20,9 @@ export default class CopyButton extends React.Component {
 
   render() {
     const containerStyle = {
+      lineHeight: 0
     }
     const style = Object.assign({
-      fontSize: "0.8em",
       padding: "0 2px",
       verticalAlign: 'text-top',
     }, this.props.buttonStyle);

+ 1 - 2
resource/js/components/Page/RevisionPath.js

@@ -74,7 +74,6 @@ export default class RevisionPath extends React.Component {
       marginRight: "0.2em",
     }
     const editButtonStyle = {
-      fontSize: "0.5em",
       marginLeft: "0.5em",
       padding: "0 2px",
     };
@@ -100,7 +99,7 @@ export default class RevisionPath extends React.Component {
     });
 
     return (
-      <span>
+      <span className="d-flex align-items-center">
         <span className="separator" style={rootStyle}>
           <a href="/">/</a>
         </span>

+ 0 - 4
resource/styles/scss/_page.scss

@@ -57,10 +57,6 @@
       margin-top: 0;
       margin-bottom: 0;
 
-      .btn-copy-container {
-        font-size: 0.65em;
-      }
-
       // crowi layout only
       a.last-path {
         color: #ccc;