Skip to content

Commit d926c53

Browse files
#RI-2454-update profiler styles (#535)
* #RI-2454-update profiler styles
1 parent fef278f commit d926c53

File tree

6 files changed

+26
-7
lines changed

6 files changed

+26
-7
lines changed

redisinsight/ui/src/components/monitor/Monitor/styles.module.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
overflow: auto;
2323

2424
:global {
25-
.euiFlexGroup, .euiFlexItem {
25+
.euiFlexGroup,
26+
.euiFlexItem {
2627
margin: 0px !important;
2728
}
2829
}
@@ -105,7 +106,7 @@
105106
.euiTableRow {
106107
td:first-child,
107108
td:last-child {
108-
border: none
109+
border: none;
109110
}
110111

111112
&:hover {
@@ -176,8 +177,11 @@
176177
border-right: 1px solid var(--euiColorLightShade);
177178
}
178179

179-
180180
.scrollDivRef {
181181
padding-top: 10px;
182182
margin-left: -12px;
183183
}
184+
185+
.time {
186+
color: var(--monitorTimeColor);
187+
}

redisinsight/ui/src/components/monitor/MonitorOutputList/MonitorOutputList.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ const MonitorOutputList = (props: Props) => {
6767
<div onLoad={measure} className={styles.item} ref={registerChild} style={style}>
6868
{!isError && (
6969
<>
70-
<span>{getFormatTime(time)}</span>
71-
<span>{`[${database} ${source}]`}</span>
70+
<span className={cx(styles.time)}>
71+
{getFormatTime(time)}
72+
&nbsp;
73+
</span>
74+
<span>{`[${database} ${source}] `}</span>
7275
<span>{getArgs(args)}</span>
7376
</>
7477
)}

redisinsight/ui/src/styles/themes/dark_theme/_dark_theme.lazy.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,7 @@
159159

160160
// Workbench
161161
--wbRunResultsBg: #{$wbRunResultsBg};
162+
163+
// Profiler
164+
--monitorTimeColor: #{$monitorTimeColor};
162165
}

redisinsight/ui/src/styles/themes/dark_theme/_theme_color.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,8 @@ $rsInputColor: #000;
117117
$rsInputWrapperColor: #202020;
118118
$rsSubmitBtn: #1ae26e;
119119

120-
//workbench
120+
// Workbench
121121
$wbRunResultsBg: #000;
122+
123+
// Profiler
124+
$monitorTimeColor: #608b4e;

redisinsight/ui/src/styles/themes/light_theme/_light_theme.lazy.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,7 @@
161161

162162
// Workbench
163163
--wbRunResultsBg: #{$wbRunResultsBg};
164+
165+
// Profiler
166+
--monitorTimeColor: #{$monitorTimeColor};
164167
}

redisinsight/ui/src/styles/themes/light_theme/_theme_color.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,8 @@ $rsSubmitBtn: #13a450;
114114
$rsInputColor: #fff;
115115
$rsInputWrapperColor: #fff;
116116

117-
//workbench
117+
// Workbench
118118
$wbRunResultsBg: #fff;
119+
120+
// Profiler
121+
$monitorTimeColor: #008000;

0 commit comments

Comments
 (0)