Skip to content

Commit b86d53f

Browse files
authored
Merge pull request #225 from RedisInsight/feature/bugfix
#RIVS-313, #RIVS-314
2 parents 73460be + 9aea8d8 commit b86d53f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/webviews/src/modules/keys-tree/components/keys-summary/KeysSummary.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const KeysSummary = (props: Props) => {
9090
if (!isMultiDbIndex) return null
9191
return (
9292
<>
93-
<VscDatabase />
93+
<VscDatabase className="sidebar-icon" />
9494
<span className="px-1">{dbIndex}</span>
9595
</>
9696
)
@@ -108,7 +108,7 @@ export const KeysSummary = (props: Props) => {
108108
}
109109

110110
return (
111-
<span>
111+
<span className="truncate">
112112
{'('}
113113
<span data-testid="keys-number-of-results">{numberWithSpaces(resultsLength)}</span>
114114
{' / '}

src/webviews/src/modules/keys-tree/components/keys-summary/styles.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
}
77

88
.content {
9-
@apply flex flex-row items-center flex-grow text-vscode-foreground opacity-80 pl-1;
9+
@apply flex flex-row items-center flex-grow text-vscode-foreground opacity-80 pl-1 truncate;
1010
}

src/webviews/src/modules/keys-tree/components/keys-tree-header/KeysTreeHeader.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const KeysTreeHeader = ({ database, open, dbTotal, children }: Props) =>
7272
showTree={showTree}
7373
toggleShowTree={handleToggleShowTree}
7474
/>
75-
{isShowScanMore(scanned, total, nextCursor) && (
75+
{isShowScanMore(scanned, total, nextCursor) && showTree && (
7676
<ScanMore
7777
loading={loading}
7878
disabled={isDisableScanMore(scanned, total, nextCursor)}

0 commit comments

Comments
 (0)