Skip to content

Commit 932ab14

Browse files
authored
Merge pull request #549 from RedisInsight/bugfix/RI-2720
#RI-2720 - fix play button for command
2 parents a10821a + 3f98e20 commit 932ab14

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

redisinsight/ui/src/components/query/Query/Query.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const Query = (props: Props) => {
100100
if (!monacoObjects.current) return
101101
const commands = query.split('\n')
102102
const { monaco, editor } = monacoObjects.current
103-
const notCommandRegEx = /^\s|\/\//
103+
const notCommandRegEx = /^[\s|//]/
104104

105105
const newDecorations = compact(commands.map((command, index) => {
106106
if (!command || notCommandRegEx.test(command)) return null

redisinsight/ui/src/styles/base/_monaco.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
content: '';
4545
width: 16px;
4646
height: 16px;
47-
mask-image: url(uiSrc/assets/img/play_icon.svg);
47+
mask-image: url('uiSrc/assets/img/play_icon.svg');
48+
-webkit-mask-image: url('uiSrc/assets/img/play_icon.svg');
4849
background-color: var(--rsSubmitBtn);
4950
background-size: contain;
5051
font-size: 16px;

0 commit comments

Comments
 (0)