Skip to content

Commit

Permalink
feat: add styles to support dialog display in stream-chat-react
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Sep 11, 2024
1 parent fe650d9 commit b589fc1
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/v2/styles/DIalog/Dialog-layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.str-chat__dialog-overlay {
inset: 0;
overflow: hidden;
position: absolute;
height: var(--str-chat__dialog-overlay-height);
width: 100%;
z-index: 2;
}
8 changes: 8 additions & 0 deletions src/v2/styles/Message/Message-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,14 @@
}
}

// Message options display - third mode: they appear, when explicitly marked as active
.str-chat__message-inner {
.str-chat__message-options.str-chat__message-options--active {
display: flex;
}
}


.str-chat__message-inner {
.str-chat__message-options {
display: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,15 @@
inset-inline-start: 0;
}
}

// the React SDK positions the reaction selector with popperjs
.str-chat-react__message-reaction-selector {
position: static;
inset-block-end: unset;
}

.str-chat__message--me, .str-chat__message--other {
.str-chat-react__message-reaction-selector {
inset-inline-start: unset;
}
}
1 change: 1 addition & 0 deletions src/v2/styles/index.layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@use 'ChannelSearch/ChannelSearch-layout';
@use 'common/CTAButton/CTAButton-layout';
@use 'common/CircleFAButton/CircleFAButton-layout';
@use 'Dialog/Dialog-layout';
@use 'EditMessageForm/EditMessageForm-layout';
@use 'ImageCarousel/ImageCarousel-layout';
@use 'Icon/Icon-layout';
Expand Down

0 comments on commit b589fc1

Please sign in to comment.