Skip to content

Commit

Permalink
fix(web): json data max height
Browse files Browse the repository at this point in the history
  • Loading branch information
LeezQ committed Apr 3, 2023
1 parent d1a8f8a commit 9652717
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
border-radius: 4px;
background: rgba(0, 0, 0, 0.5);
background: rgba(0, 0, 0, 0.2);
}

html,
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/Editor/JSONViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export default function JSONViewer(props: JSONViewerProps) {
return (
<div
style={{
maxHeight: 100,
overflow: "hidden",
maxHeight: 390,
overflow: "auto",
}}
>
<SyntaxHighlighter
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Editor/JsonEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function JsonEditor(props: {
alwaysConsumeMouseWheel: false,
},
lineNumbersMinChars: 0,
fontSize: 14,
fontSize: 13,
scrollBeyondLastLine: false,
folding: false,
overviewRulerBorder: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { useColorMode } from "@chakra-ui/react";
import clsx from "clsx";
import { t } from "i18next";
Expand Down

0 comments on commit 9652717

Please sign in to comment.