Enforce minimum note font size of 6px

https://forums.zotero.org/discussion/37147/
This commit is contained in:
Dan Stillman 2014-05-31 01:42:31 -04:00
parent db6ec2b160
commit 326d2bc1e3
2 changed files with 8 additions and 1 deletions

View file

@ -436,7 +436,7 @@
+ "body#zotero-tinymce-note.mceContentBody td, "
+ "body#zotero-tinymce-note.mceContentBody pre { "
+ "font-size: "
+ Zotero.Prefs.get('note.fontSize') + "px; "
+ Math.max(6, Zotero.Prefs.get('note.fontSize')) + "px; "
+ "} "
+ "body#zotero-tinymce-note.mceContentBody, "
+ "body#zotero-tinymce-note.mceContentBody p { "

View file

@ -2349,6 +2349,13 @@ Zotero.Prefs = new function(){
}
break;
case "note.fontSize":
var val = this.get('note.fontSize');
if (val < 6) {
this.set('note.fontSize', 6);
}
break;
case "zoteroDotOrgVersionHeader":
if (this.get("zoteroDotOrgVersionHeader")) {
Zotero.VersionHeader.register();