Skip to content

Commit ab73eb8

Browse files
committed
RI-6248 fixed pub-sub styling
1 parent 1649e33 commit ab73eb8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

redisinsight/ui/src/pages/pub-sub/components/messages-list/MessagesList/MessagesList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const MessagesList = (props: Props) => {
130130
<div className={styles.channelAnchor}>{channel}</div>
131131
</EuiToolTip>
132132
</div>
133-
<div className={styles.message} ref={rowRef}>{message}</div>
133+
<div className={styles.message} ref={rowRef}><span>{message}</span></div>
134134
</div>
135135
)
136136
}

redisinsight/ui/src/pages/pub-sub/components/messages-list/MessagesList/styles.module.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
.time {
1313
color: var(--defaultGreenColor);
1414
width: 150px;
15+
padding-right: 4px;
1516
}
1617

1718
.channel {
1819
color: var(--euiColorMediumShade);
1920
width: 220px;
20-
max-height: 26px;
2121
overflow: hidden;
2222
white-space: nowrap;
2323
text-overflow: ellipsis;
@@ -29,12 +29,19 @@
2929
overflow: hidden;
3030
white-space: nowrap;
3131
text-overflow: ellipsis;
32+
display: inline-block;
33+
vertical-align: middle;
3234
}
3335

3436
.message {
3537
width: calc(100% - 372px);
3638
color: var(--htmlColor);
3739
word-break: break-word;
40+
41+
span {
42+
display: inline-block;
43+
vertical-align: middle;
44+
}
3845
}
3946

4047
.header {

0 commit comments

Comments
 (0)