Skip to content

Commit 9f93a2a

Browse files
committed
Added icons to vertical menu
1 parent 43f3459 commit 9f93a2a

4 files changed

Lines changed: 13 additions & 8 deletions

File tree

popup.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ html
3939
body
4040
{
4141
font-family: 'Open Sans', sans-serif;
42-
font-size: .875rem;
42+
font-size: 14px;
4343

4444
display: flex;
4545
overflow: hidden;
4646
flex-direction: column;
4747

48-
width: 18.75rem;
49-
height: 31.25rem;
48+
width: 300px;
49+
height: 500px;
5050
margin: 0;
5151
}
5252

popup.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ var Menu = {
293293
export: {
294294
type: 'button',
295295
label: 'Export',
296+
before: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',
296297
onclick: function() {
297298
chrome.runtime.sendMessage({
298299
name: 'download',
@@ -304,6 +305,7 @@ var Menu = {
304305
import: {
305306
type: 'button',
306307
label: 'Import',
308+
before: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M7 10l5 5 5-5M12 15V3"/></svg>',
307309
onclick: function() {
308310
try {
309311
var input = document.createElement('input');
@@ -377,7 +379,8 @@ var Menu = {
377379
}
378380
}
379381
}
380-
};
382+
};
383+
381384
Menu.main = {
382385
type: 'main',
383386
appearanceKey: 'home',

src/css/basic.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
body
3434
{
3535
font-family: 'Open Sans', sans-serif;
36-
font-size: .875rem;
36+
font-size: 14px;
3737

3838
display: flex;
3939
overflow: hidden;
4040
flex-direction: column;
4141

42-
width: 18.75rem;
43-
height: 31.25rem;
42+
width: 300px;
43+
height: 500px;
4444
margin: 0;
4545
}

src/js/header.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ var Menu = {
3838
export: {
3939
type: 'button',
4040
label: 'Export',
41+
before: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',
4142
onclick: function() {
4243
chrome.runtime.sendMessage({
4344
name: 'download',
@@ -49,6 +50,7 @@ var Menu = {
4950
import: {
5051
type: 'button',
5152
label: 'Import',
53+
before: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M7 10l5 5 5-5M12 15V3"/></svg>',
5254
onclick: function() {
5355
try {
5456
var input = document.createElement('input');
@@ -122,4 +124,4 @@ var Menu = {
122124
}
123125
}
124126
}
125-
};
127+
};

0 commit comments

Comments
 (0)