Commit 02e2aee4 authored by Nick Stenning's avatar Nick Stenning

Ensure group list doesn't become unusable when long

This commit ensures that the groups list is scrollable when it is forced
to be smaller than the viewport due to the number of groups in it.

It's not an ideal solution, as in some contexts there isn't much of a
hint to the user that the widget is scrollable. It probably beats the
existing behaviour, though.

Fixes #2971.
parent fa64a6d6
......@@ -109,6 +109,7 @@ body {
/* The groups dropdown list. */
$group-list-width: 270px;
$group-list-spacing-below: 50px;
.group-list {
.dropdown {
......@@ -117,6 +118,9 @@ $group-list-width: 270px;
.dropdown-menu {
width: $group-list-width;
max-height: 500px; // fallback for browsers lacking support for vh/calc
max-height: calc(100vh - #{$top-bar-height} - #{$group-list-spacing-below});
overflow-y: auto;
.group-name {
overflow: hidden;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment