Skip to content

Commit c1d0ce1

Browse files
committed
Center image diffs (fixes #50)
1 parent 2e4f0bc commit c1d0ce1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

webdiff/static/css/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ ul.file-list {
104104
}
105105
.image-diff {
106106
display: table;
107+
margin: 0px auto;
107108
}
108109
.swipe input {
109110
width: 100%;

webdiff/static/js/components.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ var CodeDiff = React.createClass({
273273
},
274274
render: function() {
275275
return (
276-
<div style={{display: 'table'}}>
276+
<div>
277277
<NoChanges filePair={this.props.filePair} />
278278
<div ref="codediff" key={this.props.filePair.idx}>Loading&hellip;</div>
279279
</div>

0 commit comments

Comments
 (0)