Pārlūkot izejas kodu

Merge branch 'develop' of github.com:tracim/tracim_lib into develop

AlexiCauvin 6 gadus atpakaļ
vecāks
revīzija
01e477297c

+ 0 - 1
src/component/Input/SelectStatus/SelectStatus.styl Parādīt failu

@@ -1,7 +1,6 @@
1 1
 @import '../../../css/Variable.styl'
2 2
 
3 3
 .selectStatus
4
-  margin-right 20px
5 4
   &__dropdownbtn
6 5
     border 1px solid grey
7 6
     background-color transparent

+ 1 - 1
src/component/OptionComponent/NewVersionBtn.jsx Parādīt failu

@@ -3,7 +3,7 @@ import React from 'react'
3 3
 const NewVersionBtn = props => {
4 4
   return (
5 5
     <button
6
-      className='wsContentGeneric__option__menu__addversion newversionbtn btn btn-outline-primary mr-auto'
6
+      className='wsContentGeneric__option__menu__addversion newversionbtn btn btn-outline-primary'
7 7
       onClick={props.onClickNewVersionBtn}
8 8
       disabled={props.disabled}
9 9
     >

+ 11 - 0
src/component/PopinFixed/PopinFixed.styl Parādīt failu

@@ -57,11 +57,22 @@
57 57
     &__menu
58 58
       & > div
59 59
         display flex
60
+        flex-flow row
61
+        justify-content space-between
60 62
         align-items center
61 63
       &__addversion
62 64
         display flex
63 65
         align-items center
64 66
         cursor pointer
67
+      &__lastversion
68
+        display flex
69
+        align-items center
70
+        cursor pointer
71
+        margin-left 15px
72
+        & > i
73
+          margin-right 10px
74
+          color darkGrey
75
+          font-size 22px
65 76
       &__action
66 77
         font-size 18px
67 78
         background-color transparent

+ 1 - 1
src/component/Timeline/Revision.jsx Parādīt failu

@@ -13,7 +13,7 @@ const Revision = props => (
13 13
     </button>
14 14
 
15 15
     <div className={classnames(`${props.customClass}__messagelist__version__date`, 'timeline__messagelist__version__date')}>
16
-      Créer le {props.createdAt}
16
+      Créé le {props.createdAt}
17 17
     </div>
18 18
   </li>
19 19
 )

+ 5 - 3
src/component/Timeline/Timeline.jsx Parādīt failu

@@ -12,7 +12,7 @@ class Timeline extends React.Component {
12 12
   }
13 13
 
14 14
   componentDidUpdate () {
15
-    this.scrollToBottom()
15
+    this.props.shouldScrollToBottom && this.scrollToBottom()
16 16
   }
17 17
 
18 18
   scrollToBottom = () => this.timelineBottom.scrollIntoView({behavior: 'instant'})
@@ -115,7 +115,8 @@ Timeline.propTypes = {
115 115
   loggedUser: PropTypes.object,
116 116
   wysiwyg: PropTypes.bool,
117 117
   onClickWysiwygBtn: PropTypes.func,
118
-  onClickRevisionBtn: PropTypes.func
118
+  onClickRevisionBtn: PropTypes.func,
119
+  shouldScrollToBottom: PropTypes.bool
119 120
 }
120 121
 
121 122
 Timeline.defaultProps = {
@@ -128,5 +129,6 @@ Timeline.defaultProps = {
128 129
   },
129 130
   timelineData: [],
130 131
   wysiwyg: false,
131
-  onClickWysiwygBtn: () => {}
132
+  onClickWysiwygBtn: () => {},
133
+  shouldScrollToBottom: true
132 134
 }