Skip to content

Commit 93fe833

Browse files
committed
#RI-3624 - fix heights for browser left panel
1 parent f3fa47f commit 93fe833

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

redisinsight/ui/src/components/virtual-table/styles.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ $footerHeight: 38px;
152152
}
153153

154154
:global(.key-list-table) {
155-
height: calc(100% - 58px);
155+
height: 100%;
156156
}
157157

158158
:global(.key-details-table) {

redisinsight/ui/src/pages/browser/BrowserPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ const BrowserPage = () => {
256256
}),
257257
}}
258258
>
259-
<>
259+
<div className={styles.leftPanelContent}>
260260
<KeysHeader
261261
keysState={keysState}
262262
loading={loading}
@@ -285,7 +285,7 @@ const BrowserPage = () => {
285285
loadMoreItems={loadMoreItems}
286286
/>
287287
)}
288-
</>
288+
</div>
289289
</EuiResizablePanel>
290290

291291
<EuiResizableButton

redisinsight/ui/src/pages/browser/components/key-list/styles.module.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
}
1515

1616
.table {
17-
height: calc(100% - 48px);
18-
19-
&__withoutFooter {
20-
height: calc(100% - 50px) !important;
21-
}
17+
height: 100%;
2218
}
2319

2420
:global(.show-cli) .table {

redisinsight/ui/src/pages/browser/components/key-tree/styles.module.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
.body {
2222
display: flex;
23-
height: calc(100% - 20px);
23+
height: 100%;
2424

2525
:global(.ReactVirtualized__Table__headerRow) {
2626
border: none !important;
@@ -53,19 +53,21 @@
5353
position: relative;
5454
padding-top: 6px;
5555

56-
height: calc(100% - 90px);
56+
height: 100%;
5757

5858
flex: 1;
59+
display: flex;
60+
flex-direction: column;
5961
}
6062

6163
.treeContent {
62-
height: calc(100% - 25px);
64+
height: 100%;
6365
position: relative;
6466
width: 100%;
6567
}
6668

6769
.list {
68-
height: calc(100% + 20px);
70+
height: 100%;
6971
flex: 3;
7072
min-width: 400px;
7173
}

redisinsight/ui/src/pages/browser/styles.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,9 @@ $breakpoint-to-hide-resize-panel: 1124px;
9696
width: 100% !important;
9797
}
9898
}
99+
100+
.leftPanelContent {
101+
display: flex;
102+
flex-direction: column;
103+
height: 100%;
104+
}

0 commit comments

Comments
 (0)