How to change the default number of app on the top menu

nc12
customisation

#1

How to change the default number of apps in the top menu - before it collapsed into a “…” icon?
Default seems to be 9 apps before it starts adding them into a dropdown list.
Can I tweek something in the config.php or somewhere else to modify this behaviour?

Thanks!
Johann Savalle


#2

Hi,

There are no settings in the admin GUI or something where you can change the number. There was a design decision to have a specific number of icons depending on the width of the window.

While this doesn’t help much, I can show you where the setting is made in the code, but I have to remind you, that it is usually better to leave the code untouched and rather open a feature request.

While we are stubborn and doing it anyway:
../nextcloud/core/js # less js.js

Search for “minAppsDesktop” and you will find:
var minAppsDesktop = 8;

Increasing that value will increase the number of icons in the app bar - on the desktop (doesn’t affect mobile).


#3

Thanks for in the info.

Isn’t there a way to avoid modifying the core by writing a small plugin to overwrite the core’s behaviour? (or maybe through a theme… eventhough I went throught the theme documentation… couldn’t find anything that looks like that…)

(ps: sorry if the question sounds stupid - I am still trying to understand how all the parts are articulated together… )


#4

@jsavalle You can install App Order in order to shift around order of apps + use hide option to remove icons from the top bar menu. Note that hiding apps will remove them from the bar and … drop down menu entirely.
app-order-hide
As far as changing amount of apps shown before the … please look on the associated Github page here and create a request there. Imho, it would be nice to simply drag and drop icons into and out of the … menu from the browser. Edit: Hmm, looking into this a little further it might make sense to add this issue / feature request to Nextcloud Server.

fyi, Here is a somewhat related issue from a while back discussing option to customize whether icons + icon text names are shown and hidden in both the bar and … menu that remains unresolved.


#5

done at https://github.com/juliushaertl/apporder/issues/59