diff --git a/wikiquote-api-gui.js b/wikiquote-api-gui.js index 01dbdf2..4189d3f 100644 --- a/wikiquote-api-gui.js +++ b/wikiquote-api-gui.js @@ -572,7 +572,9 @@ https://en.wikiquote.org/w/api.php?format=json&action=query&generator=categoryme zt=infoA[ii].title; extrastyle=""; if(optionsO && optionsO.fontsizekey!=null && infoA[ii].categoryinfo!=null){ - zsize = vpr.setVal(10+infoA[ii].categoryinfo[optionsO.fontsizekey]*optionsO.fontscalerange,0,10,35,vpr.setValMode.LIMIT); + zsize = 10+infoA[ii].categoryinfo[optionsO.fontsizekey]*optionsO.fontscalerange; + if(size > 35) + size = 35; extrastyle=' style="font-size:'+zsize+'px;" '; } vpr.vprint("wiki","mkPageLinks:"+zt+" type:"+typeof(infoA[ii])+" have pageid:"+infoA[ii].pageid);