Skip to content

Commit 034c045

Browse files
committed
Styling for autocomplete
1 parent ec7067e commit 034c045

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/skins/vector/css/matrix-react-sdk/views/rooms/Autocomplete.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
background: rgba(255, 255, 255, 0.9);
88
border-bottom: none;
99
border-radius: 4px 4px 0 0;
10+
max-height: 50vh;
11+
overflow: auto
1012
}
1113

1214
.mx_Autocomplete_ProviderSection {
@@ -15,12 +17,31 @@
1517
}
1618

1719
.mx_Autocomplete_ProviderSection * {
18-
padding: 4px;
20+
padding: 2px;
1921
border-radius: 4px;
2022
}
2123

24+
.mx_Autocomplete_Completion {
25+
user-select: none;
26+
cursor: pointer;
27+
transition: 0.3s all ease;
28+
display: flex;
29+
align-items: center;
30+
}
31+
32+
.mx_Autocomplete_Completion:focus {
33+
background: #76cfa6;
34+
color: white;
35+
outline: none;
36+
}
37+
38+
.mx_Autocomplete_Completion:focus * {
39+
color: white !important;
40+
}
41+
2242
.mx_Autocomplete_provider_name {
2343
color: #76cfa6;
44+
font-weight: 600;
2445
}
2546

2647
.autocomplete-enter {

0 commit comments

Comments
 (0)