-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathQuotedMessagePreview.scss
More file actions
97 lines (82 loc) · 2.49 KB
/
QuotedMessagePreview.scss
File metadata and controls
97 lines (82 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@use '../../../styling/utils';
.str-chat {
.str-chat__message-composer__quoted-message-preview-slot {
padding: var(--spacing-xxs);
}
.str-chat__quoted-message-preview {
display: flex;
align-items: center;
gap: var(--spacing-xs);
position: relative;
background-color: var(--chat-bg-incoming);
padding: var(--spacing-xs);
border-radius: var(--message-bubble-radius-attachment);
.str-chat__quoted-message-indicator {
height: 36px;
}
.str-chat__quoted-message-preview__content {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1;
min-width: 0;
font-size: var(--typography-font-size-xs);
line-height: var(--typography-line-height-tight);
height: 40px; // to keep the same height even though the image preview is missing (it has 40px height)
.str-chat__quoted-message-preview__author {
@include utils.ellipsis-text();
overflow-x: hidden; // force ellipsis to show
font-weight: var(--typography-font-weight-semi-bold);
}
.str-chat__quoted-message-preview__message {
//@include utils.ellipsis-text-parent;
display: flex;
align-items: center;
gap: var(--spacing-xxs);
svg {
height: var(--typography-font-size-xs);
width: var(--typography-font-size-xs);
}
.str-chat__icon--microphone path {
stroke-width: 2;
}
.str-chat__quoted-message-preview__message-text {
@include utils.ellipsis-text();
min-width: 0;
flex: 1 1;
// we do not want links to be blue etc.
* {
white-space: nowrap;
color: var(--chat-text-incoming);
}
}
}
}
.str-chat__quoted-message-preview__image {
display: flex;
position: relative;
.str-chat__attachment-preview__thumbnail__play-indicator {
display: flex;
align-items: center;
justify-content: center;
height: 20px;
width: 20px;
position: absolute;
left: 10px;
top: 10px;
border-radius: var(--radius-max);
background-color: var(--control-play-control-bg);
.str-chat__icon--play-solid {
height: 12px;
width: 12px;
path {
fill: var(--control-play-control-icon);
}
}
}
}
}
.str-chat__quoted-message-preview--own {
background-color: var(--chat-bg-outgoing);
}
}