Fix contacts menu sizing

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-01-08 15:22:44 +01:00
parent 7e95c88c5f
commit f2e466905f
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 6 additions and 10 deletions

View File

@ -990,16 +990,10 @@ span.ui-icon {
} }
} }
#contactsmenu > .menu { #header .header-right > div#contactsmenu > .menu {
/* show ~4.5 entries */ /* show ~4.5 entries */
height: 278px; max-height: 278px;
width: 350px; width: 350px;
max-width: 90%;
right: 13px;
&::after {
right: 61px;
}
.emptycontent { .emptycontent {
margin-top: 5vh !important; margin-top: 5vh !important;
@ -1011,8 +1005,10 @@ span.ui-icon {
} }
.content { .content {
max-height: calc(100% - #{$header-height}); /* fixed max height of the parent container without the search input */
height: 100%; max-height: min(calc(278px - 50px), calc(100vh - 50px * 3));
height: min(calc(278px - 50px), calc(100vh - 50px * 3));
min-height: calc(44px * 1.5);
overflow-y: auto; overflow-y: auto;
.footer { .footer {