Skip to content

Commit

Permalink
Add overflow protection to kanji readings
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden2480 committed Feb 10, 2022
1 parent 1ac2975 commit f509d55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ $ curl -L http://kanjithing-backend.chocolatejade42.repl.co/kanji/車

## :memo: Future features
- [ ] Make the user guess readings of kanji in words
- [ ] Add overflow protection to readings just like examples
- [ ] Add a check for `loadKanjiDetails` in case the user has loaded a new kanji by the time info loads
- [ ] Index page with version links and details
- [ ] Help page
- How to use the extention, info about tooltips, etc
- [ ] Flashcard thing where you get the meaning of the kanji and sample words and have to draw it
- [ ] Show an extra sample word when the readings string doesn't cross over to the next line
- Compress space between two lines if it crosses over
- [ ] Grade stroke order of drawing
- [Available on GitHub](https://github.com/kanjialive/kanji-data-media/blob/master/kanji-animations/stroke_timings) with timestamps
- [ ] Settings page
Expand Down
9 changes: 9 additions & 0 deletions css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ div#panel * {
/* Info section - Kanji-specific details */
div#infosection > *:not(h1) { font-size: 20px; }
div#infosection * { margin: 0px; }
div#infosection #onkunyomi {
max-width: 300px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
word-wrap: break-word;
vertical-align: top;
display: inline-block;
}

/* Info section - examples */
div#infosection #exampleslist { padding-left: 5px; }
Expand Down

0 comments on commit f509d55

Please sign in to comment.