File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed
redisinsight/ui/src/pages/instance Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,11 @@ const InstancePage = ({ routes = [] }: Props) => {
64
64
65
65
useEffect ( ( ) => ( ) => {
66
66
setSizes ( ( prevSizes : any ) => {
67
- localStorageService . set ( BrowserStorageItem . cliResizableContainer , prevSizes )
67
+ localStorageService . set ( BrowserStorageItem . cliResizableContainer , {
68
+ [ firstPanelId ] : prevSizes [ firstPanelId ] ,
69
+ // partially fix elastic resizable issue with zooming
70
+ [ secondPanelId ] : 100 - prevSizes [ firstPanelId ] ,
71
+ } )
68
72
} )
69
73
} , [ ] )
70
74
@@ -98,7 +102,7 @@ const InstancePage = ({ routes = [] }: Props) => {
98
102
minSize = "55px"
99
103
paddingSize = "none"
100
104
size = { isShowBottomGroup ? sizes [ firstPanelId ] : 100 }
101
- wrapperProps = { { className : cx ( { [ styles . mainComponent ] : ! isShowBottomGroup } ) } }
105
+ wrapperProps = { { className : cx ( styles . panelTop , { [ styles . mainComponent ] : ! isShowBottomGroup } ) } }
102
106
data-testid = { firstPanelId }
103
107
>
104
108
< InstancePageRouter routes = { routes } />
@@ -110,8 +114,9 @@ const InstancePage = ({ routes = [] }: Props) => {
110
114
id = { secondPanelId }
111
115
scrollable = { false }
112
116
size = { isShowBottomGroup ? sizes [ secondPanelId ] : 0 }
113
- style = { { zIndex : 10 } }
117
+ style = { { zIndex : 9 } }
114
118
minSize = "140px"
119
+ wrapperProps = { { className : cx ( styles . panelBottom ) } }
115
120
data-testid = { secondPanelId }
116
121
paddingSize = "none"
117
122
>
Original file line number Diff line number Diff line change 4
4
5
5
.resizableButton {
6
6
display : none ;
7
- margin : 1 px 16px 0 !important ;
7
+ margin : -8 px 16px -8 px !important ;
8
8
z-index : 10 ;
9
9
background-color : var (--euiPageBackgroundColor );
10
10
}
11
11
12
- :global(.show-cli ) .resizableButton {
13
- display : block ;
14
- z-index : 10 ;
12
+ :global(.show-cli ) {
13
+ .resizableButton {
14
+ display : block ;
15
+ z-index : 10 ;
16
+ }
17
+
18
+ .panelTop {
19
+ padding-bottom : 8px ;
20
+ }
21
+
22
+ .panelBottom {
23
+ padding-top : 8px ;
24
+ }
15
25
}
You can’t perform that action at this time.
0 commit comments