Tweak zoom labels in PDF reader context menu

"Automatic" → "Automatically Resize"
"Page Width" → "Zoom to Page Width"
This commit is contained in:
Dan Stillman 2021-03-12 06:59:53 -05:00
parent 76d504c564
commit ed70b404ad

View file

@ -235,7 +235,7 @@ class ReaderInstance {
popup.appendChild(menuitem);
// Zoom 'Auto'
menuitem = this._window.document.createElement('menuitem');
menuitem.setAttribute('label', 'Automatic');
menuitem.setAttribute('label', 'Automatically Resize');
menuitem.setAttribute('checked', data.isZoomAuto);
menuitem.addEventListener('command', () => {
this._postMessage({ action: 'popupCmd', cmd: 'zoomAuto' });
@ -243,7 +243,7 @@ class ReaderInstance {
popup.appendChild(menuitem);
// Zoom 'Page Width'
menuitem = this._window.document.createElement('menuitem');
menuitem.setAttribute('label', 'Full Width');
menuitem.setAttribute('label', 'Zoom to Page Width');
menuitem.setAttribute('checked', data.isZoomPageWidth);
menuitem.addEventListener('command', () => {
this._postMessage({ action: 'popupCmd', cmd: 'zoomPageWidth' });