Skip to content

Commit

Permalink
Try to fix more, failed again. Made text areas clearable for mobile u…
Browse files Browse the repository at this point in the history
…sers. Also updated README.md.
  • Loading branch information
kaubu committed Dec 27, 2023
1 parent 2c1ace6 commit d7aa2d3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,22 @@
have Old English. Therefore, it only counts Germanic words that aren't
from Old English. Put Norse words there too, maybe.
- [ ] Add a search button inside of the search
- [ ] Ability to dismiss words that are fine
- [ ] Ability to retrieve them back
- [ ] Have a maximum height for the chips list, with a scrollbar in the middle,
so that if I need things below the word list it won't clog it up (if it's too
bad).
- [x] Number of words per origin
- [ ] Option to not just copy, but instead insert the letters into the field

### Editor errors

- [ ] Fix first word chip being a yellow colour always
- [ ] Fix picking the first Origin resulting in nothing happening
- [ ] If you unselect a word origin and then begin to type, should the origins
shuffle around it will reselect said word origin
- [ ] If a selected word origin disappears while deleting words, then it will
just select whichever new origin is there

## TODO

Expand Down
1 change: 1 addition & 0 deletions src/layouts/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
v-model="dictionarySearch"
append-inner-icon="mdi-search"
@keydown.enter="lookupWord = dictionarySearch"
clearable
>
</v-text-field>

Expand Down
6 changes: 5 additions & 1 deletion src/views/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
counter
v-model="rawText"
id="user-input"
clearable
>
</v-textarea>
</v-col>
Expand All @@ -50,7 +51,7 @@
@click="chosenLanguage = origin"
:style="`color: ${originColors[origin as keyof typeof originColors].color};`"
>
{{ origin }}
{{ origin }} ({{ sortedWords[origin].length }})
</v-chip>
</v-chip-group>
</v-col>
Expand Down Expand Up @@ -193,6 +194,9 @@ const sortedWords = computed(() => {
watch(sortedWords, async (_oldSortedWords, _newSortedWords) => {
const userInput = document.getElementById("user-input");
console.log(`userInput === document.activeElement = ${userInput === document.activeElement}`);
console.log(`selectedOrigin.value = ${selectedOrigin.value}`);
if (!(userInput === document.activeElement && selectedOrigin.value)) {
const newValue = Object.keys(sortedWords.value).indexOf(chosenLanguage.value);
selectedOrigin.value = newValue;
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<p><sub>This project is still in progress, expect errors.</sub></p>

<p><sub>v1.10.0 (2023-12-27)</sub></p>
<p><sub>v1.10.1 (2023-12-27)</sub></p>
</center>
</template>

Expand Down

0 comments on commit d7aa2d3

Please sign in to comment.