timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-13442] Default icon size should be configurable #2230

Open timja opened 12 years ago

timja commented 12 years ago

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
  • assignee: schristou
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 12 years ago

sledz:

Such an improvement would be great.

timja commented 6 years ago

codex24:

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
timja commented 5 years ago

simonsomlai:

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"

 

 

timja commented 3 years ago

didiez:

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)?

timja commented 3 years ago

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.