diff --git a/packages/dashboard-frontend/src/components/BasicViewer/index.module.css b/packages/dashboard-frontend/src/components/BasicViewer/index.module.css index b3bdddf86..6248608a2 100644 --- a/packages/dashboard-frontend/src/components/BasicViewer/index.module.css +++ b/packages/dashboard-frontend/src/components/BasicViewer/index.module.css @@ -14,7 +14,6 @@ overflow: auto; width: 100%; height: 100%; - max-height: 50vh; } .basicViewer > div { diff --git a/packages/dashboard-frontend/src/components/BasicViewer/index.tsx b/packages/dashboard-frontend/src/components/BasicViewer/index.tsx index 74ce1f2f4..ea1be739e 100644 --- a/packages/dashboard-frontend/src/components/BasicViewer/index.tsx +++ b/packages/dashboard-frontend/src/components/BasicViewer/index.tsx @@ -12,7 +12,7 @@ import { defaultHighlightStyle, syntaxHighlighting } from '@codemirror/language'; import { EditorState } from '@codemirror/state'; -import { EditorView, lineNumbers } from '@codemirror/view'; +import { EditorView } from '@codemirror/view'; import React from 'react'; import styles from '@/components/BasicViewer/index.module.css'; @@ -52,11 +52,7 @@ export class BasicViewer extends React.PureComponent { private getEditorState(): EditorState { return EditorState.create({ doc: this.props.value, - extensions: [ - lineNumbers(), - syntaxHighlighting(defaultHighlightStyle), - EditorState.readOnly.of(true), - ], + extensions: [syntaxHighlighting(defaultHighlightStyle), EditorState.readOnly.of(true)], }); } diff --git a/packages/dashboard-frontend/src/pages/UserPreferences/GitConfig/Viewer/index.tsx b/packages/dashboard-frontend/src/pages/UserPreferences/GitConfig/Viewer/index.tsx index cbe285817..006a50363 100644 --- a/packages/dashboard-frontend/src/pages/UserPreferences/GitConfig/Viewer/index.tsx +++ b/packages/dashboard-frontend/src/pages/UserPreferences/GitConfig/Viewer/index.tsx @@ -29,7 +29,10 @@ export class GitConfigViewer extends React.PureComponent { */ private fromGitConfig(gitConfig: api.IGitConfig['gitconfig']): string { const serializer = new ini.Serializer(); - const gitconfigStr = serializer.serialize(gitConfig); + const gitconfigStr = serializer + .serialize(gitConfig) + .replace(/\n/g, '\n ') + .replace(/ {4}\[/g, '['); return gitconfigStr; }