define always same width for code line indicator in diffview

This commit is contained in:
Florian Scholdei
2019-09-13 22:46:25 +02:00
parent 8033034bed
commit be8a10ac3b

View File

@@ -34,6 +34,11 @@ const styles = {
}, },
changeType: { changeType: {
marginLeft: ".75rem" marginLeft: ".75rem"
},
diff: {
"& > colgroup .diff-gutter-col": {
width: "3.25rem"
}
} }
}; };
@@ -221,7 +226,7 @@ class DiffFile extends React.Component<Props, State> {
body = ( body = (
<div className="panel-block is-paddingless is-size-7"> <div className="panel-block is-paddingless is-size-7">
{fileAnnotations} {fileAnnotations}
<DiffComponent viewType={viewType}> <DiffComponent className={classes.diff} viewType={viewType}>
{file.hunks.map(this.renderHunk)} {file.hunks.map(this.renderHunk)}
</DiffComponent> </DiffComponent>
</div> </div>