Skip to content

Commit

Permalink
Some small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Krasimir Tsonev committed Nov 11, 2018
1 parent d1ea544 commit 6fd4eda
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -60,4 +60,6 @@ typings/
# next.js build output
.next

NOTES
NOTES

*.log
2 changes: 1 addition & 1 deletion dist/demoit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/styles.css
Expand Up @@ -16,7 +16,7 @@ body {
font-size: 20px;
line-height: 20px;
fill: currentColor;
background-image: url("data:image/svg+xml;utf8,<svg width='100' height='100' viewBox='0 0 2048 1792' fill='#909090' xmlns='http://www.w3.org/2000/svg'><path d='M448 1168v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm128-256v96q0 16-16 16h-224q-16 0-16-16v-96q0-16 16-16h224q16 0 16 16zm-128-256v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm1024 512v96q0 16-16 16h-864q-16 0-16-16v-96q0-16 16-16h864q16 0 16 16zm-640-256v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm-128-256v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm384 256v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm-128-256v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm384 256v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm384 256v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm-512-512v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm256 0v96q0 16-16 16h-96q-16 0-16-16v-96q0-16 16-16h96q16 0 16 16zm256 0v352q0 16-16 16h-224q-16 0-16-16v-96q0-16 16-16h112v-240q0-16 16-16h96q16 0 16 16zm128 752v-896h-1664v896h1664zm128-896v896q0 53-37.5 90.5t-90.5 37.5h-1664q-53 0-90.5-37.5t-37.5-90.5v-896q0-53 37.5-90.5t90.5-37.5h1664q53 0 90.5 37.5t37.5 90.5z'/></svg>");
background-image: url("data:image/svg+xml;utf8,<svg fill='#99c6cc' width='100' height='100' viewBox='0 0 2048 1792' xmlns='http://www.w3.org/2000/svg'><path d='M480 1280q-66 0-113-47t-47-113v-704q0-66 47-113t113-47h1088q66 0 113 47t47 113v704q0 66-47 113t-113 47h-1088zm-32-864v704q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5-9.5t9.5-22.5v-704q0-13-9.5-22.5t-22.5-9.5h-1088q-13 0-22.5 9.5t-9.5 22.5zm1376 928h160v96q0 40-47 68t-113 28h-1600q-66 0-113-28t-47-68v-96h1760zm-720 96q16 0 16-16t-16-16h-160q-16 0-16 16t16 16h160z'/></svg>");
background-repeat: no-repeat;
background-position: center center;
}
Expand Down
2 changes: 1 addition & 1 deletion src/navigation.js
Expand Up @@ -10,7 +10,7 @@ export default function navigation(storage, showFile, newFile, editFile) {
items.push('<ul>');
storage.getFiles().forEach(({ filename, editing }, idx) => {
items.push(
`<li><a href="javascript:window.showFile(${ idx });void(0);" ${ storage.isCurrentIndex(idx) ? 'class="active"' : '' }" oncontextmenu="javascript:window.editFile(${ idx });void(0);">${ filename }${ editing ? ' *' : ''}</a></li>`
`<li><a href="javascript:window.showFile(${ idx });void(0);" ${ storage.isCurrentIndex(idx) ? 'class="active"' : '' }" oncontextmenu="javascript:window.editFile(${ idx });return false;">${ filename }${ editing ? ' *' : ''}</a></li>`
);
});
items.push('</ul>');
Expand Down

0 comments on commit 6fd4eda

Please sign in to comment.