Skip to content

Commit daa8ead

Browse files
authored
Merge pull request #1799 from RedisInsight/fe/bugfix/RI-4244_workbench_query_card
#RI-4244 - update query card styles
2 parents 0fc62b3 + f0fbc93 commit daa8ead

File tree

4 files changed

+15
-18
lines changed

4 files changed

+15
-18
lines changed

redisinsight/ui/src/components/query-card/QueryCardHeader/QueryCardHeader.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,12 @@ const QueryCardHeader = (props: Props) => {
346346
</EuiToolTip>
347347
)}
348348
</EuiFlexItem>
349-
{isOpen && canCommandProfile && !summaryText && (
350-
<EuiFlexItem
351-
grow={false}
352-
className={cx(styles.buttonIcon, styles.viewTypeIcon)}
353-
onClick={onDropDownViewClick}
354-
>
349+
<EuiFlexItem
350+
grow={false}
351+
className={cx(styles.buttonIcon, styles.viewTypeIcon)}
352+
onClick={onDropDownViewClick}
353+
>
354+
{isOpen && canCommandProfile && !summaryText && (
355355
<div className={styles.dropdownWrapper}>
356356
<div className={styles.dropdown}>
357357
<EuiSuperSelect
@@ -364,8 +364,8 @@ const QueryCardHeader = (props: Props) => {
364364
/>
365365
</div>
366366
</div>
367-
</EuiFlexItem>
368-
)}
367+
)}
368+
</EuiFlexItem>
369369
<EuiFlexItem
370370
grow={false}
371371
className={cx(styles.buttonIcon, styles.viewTypeIcon)}

redisinsight/ui/src/components/query-card/QueryCardHeader/styles.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ $marginIcon: 12px;
4444
}
4545

4646
.titleWrapper {
47-
width: calc(100% - 490px);
48-
min-width: calc(100% - 490px);
47+
width: calc(100% - 552px);
48+
min-width: calc(100% - 552px);
4949

5050
@media (min-width: $breakpoint-m) {
51-
width: calc(100% - 627px);
52-
min-width: calc(100% - 627px);
51+
width: calc(100% - 689px);
52+
min-width: calc(100% - 689px);
5353
}
5454
}
5555

redisinsight/ui/src/components/query-card/styles.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ $breakpoint-l: 1300px;
66
$breakpoint-m: 1050px;
77

88
.containerWrapper {
9-
min-width: 560px;
9+
min-width: 662px;
1010
@media (min-width: $breakpoint-m) {
11-
min-width: 700px;
11+
min-width: 762px;
1212
}
1313
&:nth-of-type(even) {
1414
background-color: var(--euiColorEmptyShade) !important;

redisinsight/ui/src/pages/workbench/constants.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,12 @@ export const VIEW_TYPE_OPTIONS = [
2727
export const getViewTypeOptions = () =>
2828
[...VIEW_TYPE_OPTIONS]
2929

30-
3130
export const SEARCH_COMMANDS = ['ft.search', 'ft.aggregate']
3231
export const GRAPH_COMMANDS = ['graph.query']
3332

3433
const ALLOWED_PROFILE_COMMANDS = [...SEARCH_COMMANDS, ...GRAPH_COMMANDS]
3534

36-
export const isCommandAllowedForProfile = (query: string) => {
37-
return ALLOWED_PROFILE_COMMANDS.includes(query?.split(' ')?.[0]?.toLowerCase())
38-
}
35+
export const isCommandAllowedForProfile = (query: string) => ALLOWED_PROFILE_COMMANDS.includes(query?.split(' ')?.[0]?.toLowerCase())
3936

4037
export enum ProfileQueryType {
4138
Profile = 'Profile',

0 commit comments

Comments
 (0)