mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Decimal percentage, dynamic appIcon width
Signed-off-by: Patrik Kernstock <info@pkern.at>
This commit is contained in:
parent
6acabd64ca
commit
073d5dbc85
1 changed files with 3 additions and 3 deletions
|
|
@ -1512,9 +1512,9 @@ function initCore() {
|
|||
|
||||
var resizeMenu = function() {
|
||||
var appList = $('#appmenu li');
|
||||
var usePercentualAppMenuLimit = 33;
|
||||
var availableWidth = (($('#header-left').width() - $('#nextcloud').width()) / 100 * usePercentualAppMenuLimit);
|
||||
var appCount = Math.floor((availableWidth)/44);
|
||||
var usePercentualAppMenuLimit = 0.33;
|
||||
var availableWidth = (($('#header-left').width() - $('#nextcloud').width()) * usePercentualAppMenuLimit);
|
||||
var appCount = Math.floor((availableWidth / $(appList).width()));
|
||||
// show at least 2 apps in the popover
|
||||
if(appList.length-1-appCount >= 1) {
|
||||
appCount--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue