Skip to content

Commit b394ac5

Browse files
committed
feat: add missing styles for ReactionsListModal
1 parent 56d8b41 commit b394ac5

3 files changed

Lines changed: 89 additions & 3 deletions

File tree

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
.str-chat__message-reactions-details-modal {
2+
.str-chat__modal__inner {
3+
max-height: 80%;
4+
min-width: 90%;
5+
max-width: 90%;
6+
width: min(480px, 90vw);
7+
height: min(640px, 90vh);
8+
flex-basis: min-content;
9+
10+
@media only screen and (min-device-width: 768px) {
11+
min-width: 40vh;
12+
max-width: 60vh;
13+
width: min-content;
14+
}
15+
}
16+
}
17+
18+
.str-chat__message-reactions-details {
19+
width: 100%;
20+
display: flex;
21+
flex-direction: column;
22+
gap: var(--str-chat__spacing-4);
23+
max-height: 100%;
24+
height: 100%;
25+
min-height: 0;
26+
27+
.str-chat__message-reactions-details-reaction-types {
28+
display: flex;
29+
max-width: 100%;
30+
width: 100%;
31+
min-width: 0;
32+
overflow-x: auto;
33+
gap: var(--str-chat__spacing-4);
34+
align-items: center;
35+
flex-shrink: 0;
36+
37+
.str-chat__message-reactions-details-reaction-type {
38+
display: flex;
39+
align-items: center;
40+
padding: var(--str-chat__spacing-1) 0;
41+
flex-shrink: 0;
42+
cursor: pointer;
43+
border-block-end: solid transparent;
44+
45+
.str-chat__message-reaction-emoji--with-fallback {
46+
width: 18px;
47+
line-height: 18px;
48+
}
49+
}
50+
51+
.str-chat__message-reactions-details-reaction-type--selected {
52+
border-block-end: var(--str-chat__messsage-reactions-details--selected-color);
53+
}
54+
}
55+
56+
.str-chat__message-reaction-emoji-big {
57+
--str-chat__stream-emoji-size: 1em;
58+
align-self: center;
59+
font-size: 2rem;
60+
}
61+
62+
.str-chat__message-reaction-emoji-big.str-chat__message-reaction-emoji--with-fallback {
63+
line-height: 2rem;
64+
}
65+
66+
.str-chat__message-reactions-details-reacting-users {
67+
display: flex;
68+
flex-direction: column;
69+
gap: var(--str-chat__spacing-3);
70+
max-height: 100%;
71+
overflow-y: auto;
72+
min-height: 30vh;
73+
74+
.str-chat__loading-indicator {
75+
margin: auto;
76+
}
77+
78+
.str-chat__message-reactions-details-reacting-user {
79+
display: flex;
80+
align-items: center;
81+
gap: var(--str-chat__spacing-2);
82+
font: var(--str-chat__subtitle-text);
83+
}
84+
}
85+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@use 'ReactionList';
2+
@use 'ReactionSelector';
3+
@use 'ReactionsListModal';

src/styling/index.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
@use './variables.css';
88
@use 'base';
99
@use 'icons';
10-
// Fonts
1110
@use 'fonts';
1211

1312
// alias is necessary to allow sass create namespaces with different names (and not same name styling)
@@ -37,8 +36,7 @@
3736
@use '../components/MessageInput/styling' as MessageComposer;
3837
@use '../components/MessageList/styling' as MessageList;
3938
@use '../components/Poll/styling' as Poll;
40-
@use '../components/Reactions/styling/ReactionList' as ReactionList;
41-
@use '../components/Reactions/styling/ReactionSelector' as ReactionSelector;
39+
@use '../components/Reactions/styling' as Reactions;
4240
@use '../components/TextareaComposer/styling' as TextareaComposer;
4341
@use '../components/Thread/styling' as Thread;
4442
@use '../components/VideoPlayer/styling' as VideoPlayer;

0 commit comments

Comments
 (0)