Open timja opened 12 years ago
As a workaround, you can define your browser shortcut to use the URL that selecting the small icon setting would connect to anyway:
http://jenkins.example.com:8080/iconSize?16x16
Another way to set this is by installing the Simple Theme Plugin, adding some custom javascript in the userContent directory and then just executing it on load using the simple theme settings. Something like;
// Script to set the default icon size to small if it hasn't been set yet var iconSizeSet = !!document.cookie.match(/iconsize/gi) if(!iconSizeSet) window.location = "http://: /iconSize?16x16"
The javascript cookie hack won't work since v2.231. See https://github.com/jenkinsci/jenkins/pull/4609
Are there any options out there to configure this, ideally by CasC (configuration-as-code)?
kon:
The default 32x32 seems to come from https://github.com/jenkinsci/jenkins/blob/d7604cfb08cd82449e0d79f25432a196fa04bc2a/core/src/main/java/hudson/model/View.java#L845
So no, there is no system property or configuration setting that would change the default.
The icon size can be selected in the main listview (Small/Medium/Large, i.e. 16x16/24x24/32x32).
When no cookie is set the UI code assumes 32x32 as the default setting. This may be sensible for most users (with few jobs on their list), but setups with a large amount of jobs require every single user viewing the job list to set their iconSize cookie (at least) once. New users sent to the job list for the first time can't be expected to see the list the same way others do, which would be desirable.
Originally reported by berlincount, imported from: Default icon size should be configurable