Skip to content

Commit 6543b29

Browse files
committed
Size Autocomplete relative to the RoomView height rather than the viewport height
1 parent a2f5c49 commit 6543b29

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

res/css/structures/_RoomView.pcss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Please see LICENSE files in the repository root for full details.
7676
flex-direction: column;
7777
flex: 1;
7878
min-width: 0;
79+
container-type: size;
80+
container-name: roomview;
7981

8082
.mx_RoomView_messagePanel,
8183
.mx_RoomView_messagePanelSpinner,

res/css/views/rooms/_Autocomplete.pcss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@
6565
margin: 12px;
6666
height: 100%;
6767
overflow-y: scroll;
68-
max-height: 35vh;
68+
}
69+
70+
@container roomview (height >= 0px) {
71+
.mx_Autocomplete_Completion_container_pill {
72+
max-height: 40cqh;
73+
}
6974
}
7075

7176
.mx_Autocomplete_Completion_container_truncate {

0 commit comments

Comments
 (0)