File tree 2 files changed +15
-16
lines changed
2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,9 @@ limitations under the License.
91
91
.mx_EventTile_msgOption {
92
92
float : right;
93
93
text-align : right;
94
- margin-right : 10px ;
95
94
z-index : 1 ;
96
95
position : relative;
96
+ width : 100px ;
97
97
}
98
98
99
99
.mx_MessageTimestamp {
@@ -111,10 +111,9 @@ limitations under the License.
111
111
}
112
112
113
113
.mx_EventTile_editButton {
114
- display : block;
115
- visibility : hidden;
116
- margin-left : auto;
117
- margin-right : 0px ;
114
+ position : absolute;
115
+ display : inline-block;
116
+ visibility : hidden;
118
117
}
119
118
120
119
.mx_EventTile : hover .mx_EventTile_editButton {
Original file line number Diff line number Diff line change @@ -172,15 +172,22 @@ module.exports = React.createClass({
172
172
if ( remainder > 0 ) {
173
173
remText = < span className = "mx_EventTile_readAvatarRemainder"
174
174
onClick = { this . toggleAllReadAvatars }
175
- style = { { left : left } } > + { remainder }
175
+ style = { { left : left } } > { remainder } +
176
176
</ span > ;
177
177
}
178
178
}
179
179
180
+ var editButton = (
181
+ < input style = { { left : left + 15 } }
182
+ type = "image" src = "img/edit.png" alt = "Edit" width = "14" height = "14"
183
+ className = "mx_EventTile_editButton" onClick = { this . onEditClicked } />
184
+ ) ;
185
+
180
186
return < span className = "mx_EventTile_readAvatars" ref = { this . collectReadAvatarNode } >
181
- { remText }
182
- < Velociraptor transition = { reorderTransitionOpts } >
183
- { avatars }
187
+ { editButton }
188
+ { remText }
189
+ < Velociraptor transition = { reorderTransitionOpts } >
190
+ { avatars }
184
191
</ Velociraptor >
185
192
</ span > ;
186
193
} ,
@@ -217,12 +224,6 @@ module.exports = React.createClass({
217
224
menu : this . state . menu ,
218
225
} ) ;
219
226
var timestamp = < MessageTimestamp ts = { this . props . mxEvent . getTs ( ) } />
220
- var editButton = (
221
- < input
222
- type = "image" src = "img/edit.png" alt = "Edit" width = "14" height = "14"
223
- className = "mx_EventTile_editButton" onClick = { this . onEditClicked }
224
- />
225
- ) ;
226
227
227
228
var aux = null ;
228
229
if ( msgtype === 'm.image' ) aux = "sent an image" ;
@@ -247,7 +248,6 @@ module.exports = React.createClass({
247
248
return (
248
249
< div className = { classes } >
249
250
< div className = "mx_EventTile_msgOption" >
250
- { editButton }
251
251
{ timestamp }
252
252
{ readAvatars }
253
253
</ div >
You can’t perform that action at this time.
0 commit comments