Skip to content

Commit 27d92fa

Browse files
committed
Open files in new window too
1 parent a00510c commit 27d92fa

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
Copyright 2015 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_MTextTile {
18+
white-space: pre-wrap;
19+
}
20+

‎skins/base/views/molecules/MFileTile.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = React.createClass({
3232

3333
return (
3434
<span className="mx_MFileTile">
35-
<a href={cli.mxcUrlToHttp(content.url)}>
35+
<a href={cli.mxcUrlToHttp(content.url)} target="_blank">
3636
{this.presentableTextForFile(content)}
3737
</a>
3838
</span>

0 commit comments

Comments
 (0)