Skip to content

Commit

Permalink
Place scrollbar for Language selector and Note selector within the li…
Browse files Browse the repository at this point in the history
…st instead of scrolling the whole "screen"
  • Loading branch information
heyman committed Jul 24, 2024
1 parent f11f360 commit 03db1ef
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
17 changes: 11 additions & 6 deletions src/components/LanguageSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@

<style scoped lang="sass">
.scroller
overflow: auto
position: fixed
top: 0
left: 0
bottom: 0
right: 0
//overflow: auto
//position: fixed
//top: 0
//left: 0
//bottom: 0
//right: 0
.language-selector
font-size: 13px
padding: 10px
Expand All @@ -121,6 +121,10 @@
top: 0
left: 50%
transform: translateX(-50%)
max-height: 100%
box-sizing: border-box
display: flex
flex-direction: column
border-radius: 0 0 5px 5px
box-shadow: 0 0 10px rgba(0,0,0,0.3)
+dark-mode
Expand Down Expand Up @@ -152,6 +156,7 @@
max-width: 100%
.items
overflow-y: auto
> li
border-radius: 3px
padding: 5px 12px
Expand Down
5 changes: 2 additions & 3 deletions src/components/NewNote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</script>

<template>
<div class="scroller" @keydown="onKeydown" tabindex="-1">
<div class="fader" @keydown="onKeydown" tabindex="-1">
<form class="new-note" tabindex="-1" @focusout="onFocusOut" ref="container" @submit="onSubmit">
<div class="container">
<h1>New Note from Block</h1>
Expand All @@ -73,8 +73,7 @@
</template>

<style scoped lang="sass">
.scroller
overflow: auto
.fader
position: fixed
top: 0
left: 0
Expand Down
17 changes: 11 additions & 6 deletions src/components/NoteSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@
<style scoped lang="sass">
.scroller
overflow: auto
position: fixed
top: 0
left: 0
bottom: 0
right: 0
//overflow: auto
//position: fixed
//top: 0
//left: 0
//bottom: 0
//right: 0
.note-selector
font-size: 13px
padding: 10px
Expand All @@ -129,6 +129,10 @@
top: 0
left: 50%
transform: translateX(-50%)
max-height: 100%
box-sizing: border-box
display: flex
flex-direction: column
border-radius: 0 0 5px 5px
box-shadow: 0 0 10px rgba(0,0,0,0.3)
+dark-mode
Expand Down Expand Up @@ -160,6 +164,7 @@
max-width: 100%
.items
overflow-y: auto
> li
border-radius: 3px
padding: 5px 12px
Expand Down

0 comments on commit 03db1ef

Please sign in to comment.