-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAutocomplete-layout.scss
More file actions
94 lines (77 loc) · 1.89 KB
/
Copy pathAutocomplete-layout.scss
File metadata and controls
94 lines (77 loc) · 1.89 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
@use '../utils';
// Class defined by Angular mentions
// !important necessary to override library defined styles
.str-chat__message-textarea-angular-host {
position: relative;
mention-list {
width: 100%;
}
.mention-menu {
padding: var(--str-chat__spacing-2) 0 !important;
margin: 0 !important;
max-width: 100%;
.mention-item {
padding: 0 !important;
}
}
}
// React SDK's version of Angular SDK's .dropup (mention-list)
.str-chat__suggestion-list-container {
position: absolute;
bottom: calc(100% + var(--str-chat__spacing-2_5));
width: 100%;
padding: var(--str-chat__spacing-2) 0;
.str-chat__suggestion-list {
overflow-y: auto;
max-height: calc(var(--str-chat__spacing-px) * 320);
display: flex;
flex-direction: column;
list-style: none;
padding: unset;
margin: unset;
}
.str-chat__suggestion-list--react {
overflow-y: unset;
.str-chat__suggestion-list-item {
> button {
width: 100%;
}
}
}
}
.str-chat__slash-command {
padding: var(--str-chat__spacing-2_5);
.str-chat__slash-command-header {
.str-chat__slash-command-args {
margin-inline-start: var(--str-chat__spacing-2);
}
}
}
.str-chat__user-item {
@include utils.flex-row-center;
padding: var(--str-chat__spacing-2_5);
column-gap: var(--str-chat__spacing-2);
.str-chat__user-item--name {
@include utils.ellipsis-text;
@include utils.prevent-glitch-text-overflow;
display: flex;
align-items: center;
width: 100%;
}
}
.str-chat__emoji-item {
@include utils.flex-row-center;
padding: var(--str-chat__spacing-2_5);
column-gap: var(--str-chat__spacing-2);
.str-chat__emoji-item--name {
@include utils.ellipsis-text;
display: flex;
align-items: center;
width: 100%;
}
}
.str-chat__message-textarea-angular-host--autocomplete-hidden {
mention-list {
display: none;
}
}