Skip to content

Commit a6949e3

Browse files
committed
chore: update version to 1.8.5 and fix gutter width function naming
1 parent 6f24031 commit a6949e3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.8.4",
3+
"version": "1.8.5",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Common/CodeMirror/CodeEditorRenderer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ export const CodeEditorRenderer = ({
6464
const componentSpecificThemeClass = getComponentSpecificThemeClass(theme)
6565

6666
// This handling will be removed once shebang is shown inside the codeEditor rather than extra div
67-
const updateGutterWith = () => {
67+
const updateGutterWidth = () => {
6868
const gutters = document.querySelector('.cm-gutters')
6969
if (gutters) {
7070
setGutterWidth(gutters.getBoundingClientRect().width)
7171
}
7272
}
7373

7474
useEffect(() => {
75-
updateGutterWith()
75+
updateGutterWidth()
7676
}, [lhsValue, value])
7777

7878
useEffect(() => {
@@ -155,7 +155,7 @@ export const CodeEditorRenderer = ({
155155
}, [loading, diffMode, codemirrorMergeKey])
156156

157157
const onCreateEditor = () => {
158-
updateGutterWith()
158+
updateGutterWidth()
159159
}
160160

161161
const { codeEditorClassName, codeEditorHeight, codeEditorParentClassName } = getCodeEditorHeight(height)

0 commit comments

Comments
 (0)