Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/css
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-01-10 15:44:13 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2020-01-11 10:20:26 +0300
commit73be85e0b0197d82fd0b297b2facb38055c15979 (patch)
tree2d7c71bdff3b0f2c8010a87ff6532de3288fa4cd /core/css
parent687715c877ec09750198e24abc72e80ea9d36174 (diff)
Set the contactsmenu height without min calculation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/css')
-rw-r--r--core/css/styles.scss12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/css/styles.scss b/core/css/styles.scss
index ef4ac4c7123..e304357e671 100644
--- a/core/css/styles.scss
+++ b/core/css/styles.scss
@@ -991,8 +991,10 @@ span.ui-icon {
}
#header .header-right > div#contactsmenu > .menu {
- /* show ~4.5 entries */
- max-height: 278px;
+ /* show 2.5 to 4.5 entries depending on the screen height */
+ height: calc(100vh - 50px * 3);
+ max-height: calc(50px * 4.5 + 50px);
+ min-height: calc(50px * 3.5);
width: 350px;
.emptycontent {
@@ -1006,9 +1008,9 @@ span.ui-icon {
.content {
/* fixed max height of the parent container without the search input */
- 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);
+ height: calc(100vh - 50px * 3 - 50px);
+ max-height: calc(50px * 4.5);
+ min-height: calc(50px * 3.5 - 50px);
overflow-y: auto;
.footer {