File tree Expand file tree Collapse file tree
components/views/elements Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ module.exports = React.createClass({
118118 < img src = { this . props . src } style = { style } />
119119 < div className = "mx_ImageView_labelWrapper" >
120120 < div className = "mx_ImageView_label" >
121+ < img className = "mx_ImageView_cancel" src = "img/cancel-white.svg" width = "18" height = "18" alt = "Close" onClick = { this . props . onFinished } />
121122 < div className = "mx_ImageView_shim" >
122123 </ div >
123124 < div className = "mx_ImageView_name" >
Original file line number Diff line number Diff line change @@ -60,16 +60,18 @@ limitations under the License.
6060 max-width : 100% ;
6161 /* XXX: max-height interacts badly with flex on Chrome and doesn't relayout properly until you refresh */
6262 max-height : 100% ;
63- /* object-fit hack needed for Chrome due to Chrome not relaying out until you refresh */
63+ /* object-fit hack needed for Chrome due to Chrome not re-laying- out until you refresh */
6464 object-fit : contain;
6565 /* background-image: url('img/trans.png'); */
66+ pointer-events : all;
6667}
6768
6869. mx_ImageView_labelWrapper {
6970 position : absolute;
7071 top : 0px ;
7172 height : 100% ;
7273 overflow : auto;
74+ pointer-events : all;
7375}
7476
7577. mx_ImageView_label {
@@ -86,20 +88,25 @@ limitations under the License.
8688 color : # fff;
8789}
8890
91+ . mx_ImageView_cancel {
92+ position : absolute;
93+ top : 0px ;
94+ right : 0px ;
95+ padding : 35px ;
96+ cursor : pointer;
97+ }
98+
8999. mx_ImageView_name {
90100 font-size : 18px ;
91101 margin-bottom : 6px ;
92- pointer-events : all;
93102}
94103
95104. mx_ImageView_metadata {
96105 font-size : 15px ;
97106 opacity : 0.5 ;
98- pointer-events : all;
99107}
100108
101109. mx_ImageView_download {
102- pointer-events : all;
103110 display : table;
104111 margin-top : 24px ;
105112 margin-bottom : 6px ;
@@ -120,7 +127,6 @@ limitations under the License.
120127}
121128
122129. mx_ImageView_button {
123- pointer-events : all;
124130 font-size : 15px ;
125131 opacity : 0.5 ;
126132 margin-top : 18px ;
You can’t perform that action at this time.
0 commit comments