Enforce minimum note font size of 6px
https://forums.zotero.org/discussion/37147/
This commit is contained in:
parent
db6ec2b160
commit
326d2bc1e3
2 changed files with 8 additions and 1 deletions
|
@ -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 { "
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue