Fixx CodeDiff scroll behaviour
This commit is contained in:
@@ -114,9 +114,10 @@ const style = (theme: Theme) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const codeBaseStyle = {
|
const codeBaseStyle = {
|
||||||
display: 'inline-block' as 'inline-block',
|
|
||||||
font: "12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace",
|
font: "12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace",
|
||||||
minHeight: '3em',
|
minHeight: '3em',
|
||||||
|
display: 'inline-grid' as 'inline-grid',
|
||||||
|
margin: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -137,6 +138,7 @@ const style = (theme: Theme) => {
|
|||||||
codeWrapper: {
|
codeWrapper: {
|
||||||
maxHeight: '15em',
|
maxHeight: '15em',
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
|
backgroundColor: `${codeBlockColors.background}`,
|
||||||
},
|
},
|
||||||
gutters: {
|
gutters: {
|
||||||
...codeBaseStyle,
|
...codeBaseStyle,
|
||||||
@@ -147,7 +149,7 @@ const style = (theme: Theme) => {
|
|||||||
codeBlock: {
|
codeBlock: {
|
||||||
...codeBaseStyle,
|
...codeBaseStyle,
|
||||||
width: 'calc(100% - 33px)',
|
width: 'calc(100% - 33px)',
|
||||||
backgroundColor: `${codeBlockColors.background} !important`,
|
backgroundColor: 'inherit !important',
|
||||||
'& span': {
|
'& span': {
|
||||||
color: codeBlockColors.text,
|
color: codeBlockColors.text,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user