Skip to content

Commit bc9e068

Browse files
authored
feat: add styles to support dialog display in stream-chat-react (#308)
1 parent fe650d9 commit bc9e068

4 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.str-chat__dialog-overlay {
2+
inset: 0;
3+
overflow: hidden;
4+
position: absolute;
5+
height: var(--str-chat__dialog-overlay-height);
6+
width: 100%;
7+
z-index: 2;
8+
}

src/v2/styles/Message/Message-layout.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,14 @@
350350
}
351351
}
352352

353+
// Message options display - third mode: they appear, when explicitly marked as active
354+
.str-chat__message-inner {
355+
.str-chat__message-options.str-chat__message-options--active {
356+
display: flex;
357+
}
358+
}
359+
360+
353361
.str-chat__message-inner {
354362
.str-chat__message-options {
355363
display: none;

src/v2/styles/MessageReactions/MessageReactionsSelector-layout.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,19 @@
6868
inset-inline-start: 0;
6969
}
7070
}
71+
72+
// the React SDK positions the reaction selector with popperjs
73+
.str-chat-react__message-reaction-selector {
74+
position: static;
75+
inset-block-end: unset;
76+
77+
ul {
78+
margin: 0;
79+
}
80+
}
81+
82+
.str-chat__message--me, .str-chat__message--other {
83+
.str-chat-react__message-reaction-selector {
84+
inset-inline-start: unset;
85+
}
86+
}

src/v2/styles/index.layout.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
@use 'ChannelSearch/ChannelSearch-layout';
1616
@use 'common/CTAButton/CTAButton-layout';
1717
@use 'common/CircleFAButton/CircleFAButton-layout';
18+
@use 'Dialog/Dialog-layout';
1819
@use 'EditMessageForm/EditMessageForm-layout';
1920
@use 'ImageCarousel/ImageCarousel-layout';
2021
@use 'Icon/Icon-layout';

0 commit comments

Comments
 (0)