mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #1726
This commit is contained in:
parent
88a66d64f1
commit
3576c22401
1 changed files with 6 additions and 5 deletions
11
dev/External/SquireUI.js
vendored
11
dev/External/SquireUI.js
vendored
|
|
@ -109,13 +109,13 @@ class SquireUI
|
||||||
cmd: s => squire.setStyle({ fontFamily: s.value })
|
cmd: s => squire.setStyle({ fontFamily: s.value })
|
||||||
},
|
},
|
||||||
fontSize: {
|
fontSize: {
|
||||||
select: ['11px','13px','16px','20px','24px','30px'],
|
select: [[i18n('GLOBAL/DEFAULT'),''],'11px','13px','16px','20px','24px','30px'],
|
||||||
defaultValueIndex: 2,
|
defaultValueIndex: 0,
|
||||||
cmd: s => squire.setStyle({ fontSize: s.value })
|
cmd: s => squire.setStyle({ fontSize: s.value })
|
||||||
// TODO: maybe consider using https://developer.mozilla.org/en-US/docs/Web/CSS/font-size#values
|
// TODO: maybe consider using https://developer.mozilla.org/en-US/docs/Web/CSS/font-size#values
|
||||||
// example:
|
// example:
|
||||||
// select: ['xx-small', 'x-small',' small',' medium', 'large', 'x-large', 'xx-large', 'xxx-large'],
|
// select: ['','xx-small', 'x-small',' small',' medium', 'large', 'x-large', 'xx-large', 'xxx-large'],
|
||||||
// defaultValueIndex: 3,
|
// defaultValueIndex: 0,
|
||||||
},
|
},
|
||||||
// dir: {
|
// dir: {
|
||||||
// select: [
|
// select: [
|
||||||
|
|
@ -355,6 +355,7 @@ class SquireUI
|
||||||
input.append(option);
|
input.append(option);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
input.add(new Option(i18n('GLOBAL/DEFAULT'), ''));
|
||||||
Object.entries(cfg.select).forEach(([label, options]) => {
|
Object.entries(cfg.select).forEach(([label, options]) => {
|
||||||
let group = createElement('optgroup');
|
let group = createElement('optgroup');
|
||||||
group.label = label;
|
group.label = label;
|
||||||
|
|
@ -363,7 +364,7 @@ class SquireUI
|
||||||
option.style[action] = value;
|
option.style[action] = value;
|
||||||
group.append(option);
|
group.append(option);
|
||||||
});
|
});
|
||||||
input.append(group);
|
input.add(group);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ev = 'input';
|
ev = 'input';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue