mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
define always same width for code line indicator in diffview
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user