Skip to content

Commit ce5f1a3

Browse files
karaggeorgesindresorhus
authored andcommitted
Fix export history menu item and editor format size
1 parent aa8ddaf commit ce5f1a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

main/menus.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ const aboutItem = {
8888

8989
let isExportsItemEnabled = false;
9090

91-
const exportHistoryItem = {
91+
const getExportHistoryItem = () => ({
9292
label: 'Export History',
9393
click: openExportsWindow,
9494
enabled: isExportsItemEnabled,
9595
id: 'exports'
96-
};
96+
});
9797

9898
const preferencesItem = {
9999
label: 'Preferences…',
@@ -163,7 +163,7 @@ const getCogMenuTemplate = async () => [
163163
type: 'separator'
164164
},
165165
openFileItem,
166-
exportHistoryItem,
166+
getExportHistoryItem(),
167167
{
168168
type: 'separator'
169169
},
@@ -221,7 +221,7 @@ const appMenuTemplate = [
221221
{
222222
type: 'separator'
223223
},
224-
exportHistoryItem,
224+
getExportHistoryItem(),
225225
{
226226
type: 'separator'
227227
},

renderer/components/editor/options/right.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class RightOptions extends React.Component {
111111
112112
.format {
113113
height: 24px;
114-
width: 96px;
114+
width: 104px;
115115
margin-right: 8px;
116116
}
117117

0 commit comments

Comments
 (0)