File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
client/packages/lowcoder/src/comps/comps/jsonComp Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,16 @@ import { AutoHeightControl } from "@lowcoder-ee/index.sdk";
27
27
* JsonEditor Comp
28
28
*/
29
29
30
- const Wrapper = styled . div < { $height :boolean } > `
30
+ const Wrapper = styled . div < { $height : boolean } > `
31
31
background-color: #fff;
32
32
border: 1px solid #d7d9e0;
33
33
border-radius: 4px;
34
- overflow: auto;
35
- height: ${ props => props . $height ?'100%' :'300px' } ;
34
+ overflow: scroll;
35
+ height: ${ ( props ) => ( props . $height ? '100%' : '300px' ) } ;
36
+ &::-webkit-scrollbar {
37
+ width: 16px;
38
+ display:block !important;
39
+ }
36
40
` ;
37
41
38
42
/**
Original file line number Diff line number Diff line change @@ -41,15 +41,19 @@ const bgColorMap = {
41
41
const JsonExplorerContainer = styled . div < {
42
42
$theme : keyof typeof bgColorMap ;
43
43
$animationStyle : AnimationStyleType ;
44
- $height : boolean
44
+ $height : boolean ;
45
45
} > `
46
46
${ ( props ) => props . $animationStyle }
47
- height: ${ props => props . $height ?'100%' : '300px' } ;
47
+ height: ${ ( props ) => ( props . $height ? '100%' : '300px' ) } ;
48
48
overflow-y: scroll;
49
- background-color: ${ ( props ) => bgColorMap [ props . $theme ] || " #ffffff" } ;
49
+ background-color: ${ ( props ) => bgColorMap [ props . $theme ] || ' #ffffff' } ;
50
50
border: 1px solid #d7d9e0;
51
51
border-radius: 4px;
52
52
padding: 10px;
53
+ &::-webkit-scrollbar {
54
+ width: 16px;
55
+ display: block !important;
56
+ }
53
57
` ;
54
58
55
59
let JsonExplorerTmpComp = ( function ( ) {
You can’t perform that action at this time.
0 commit comments