Skip to content

Commit

Permalink
Modal z-index, title model enter
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkace committed Mar 7, 2018
1 parent 713c438 commit 1a52bed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lyrics/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
.lyredit {
position: relative;
height: 95vh;
overflow-y: auto;
}

.lyrics {
padding: 0.5em;
column-gap: 1em;
overflow-y: auto;
transform-origin: 0 0;

transition: transform animDur;
Expand Down
1 change: 1 addition & 0 deletions src/modal/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
display: flex;
align-items: flex-start;
justify-content: center;
z-index: 1;

background: colors.modalBg;
}
Expand Down
5 changes: 5 additions & 0 deletions src/modal/title.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export default {
value : vnode.state.value,
placeholder : state.song.title,
class : css.input,
onkeydown : (e) => {
if(e.keyCode === 13 && vnode.state.value) {
state.action("ADD TITLE", vnode.state.value);
}
},
oninput : m.withAttr("value", (v) => {
vnode.state.value = v;
}),
Expand Down

0 comments on commit 1a52bed

Please sign in to comment.