-
Notifications
You must be signed in to change notification settings - Fork 111
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling and display of results #49
Comments
siikamiika commented on 2019-11-26
I did this to save space (mostly because of the tags), but back then touch devices weren't a concern. I'm obviously biased when I say I like the current behavior on devices that have a pointer. Do you have ideas how the tags and the audio button could be displayed on touch devices? Maybe there could be something with a static width that reacts to a tap and expands the extra information for each expression. Currently it's possible to tap somewhere near the fullwidth comma to do the same thing, but it's not obvious to users.
This reminds me that "Deep DOM scan" breaks all the buttons above mails in Gmail. I don't think anything else than blacklisting could fix this, but settings profiles can already be used for that.
This would change a lot of things, especially about nested popups. Iframes work differently with focus on different browsers, but I haven't tried shadow DOM. I also wonder how this would affect keyboard shortcuts. |
toasted-nutbread commented on 2019-11-26
I understand why it was done, and I don't currently have any better ideas; it's just been something that I've run into a few times.
Interesting, I was unaware of any such bug. Can you provide more details on what exact buttons you mean, either here or in a separate issue? It sounds like it should be able to be worked around, but I'm not sure what's happening right now.
Yeah, there are likely a lot of issues surrounding this, which is why the intent is primarily for testing to see what it might provide. The two benefits I can think of off the top of my head are encapsulation from the website (i.e. iframe can't be hijacked) and easier to make styles for the outer CSS. The implementation could potentially be just an iframe inside of a shadow DOM, rather than trying to fit everything into the shadow DOM directly. But it's entirely possible that the benefits are completely outweighed by the negatives (focus issues, message passing, code complexity, lack of support, etc.). |
siikamiika commented on 2019-12-01
I did some changes to history navigation in the popup and search page, and now it's possible to go forward in addition to back. In the process I also made the history navigation buttons static. While it works quite nicely with keyboard and mouse wheel shortcuts, the buttons are very small and difficult to use on touchscreen devices. Increasing the size would take up display real estate, so I'm hesitant to do that, but I was thinking if it would make sense to add support for swipe gestures like on iOS and Mac. It could be difficult because swiping can also be used for scanning. |
siikamiika commented on 2020-01-27
I think this is fixed by https://www.github.com/FooSoft/yomichan/pull/316, checked as done edit: oops, that's a completely different thing |
Simple Themethe crazy clashing tag colors and distracting elements in jitendex were driving me mad, so i did a little CSS butchering. not sure where else to put this, since i don't see any theme repository or wiki. consider it inspiration for a different way to live. |
Sorry :( |
thanks for making jitendex :) i really only wanted yomitan as an inline popup dictionary to help with reading manga that has been OCR'd with mokuro, so the word type classifications, dictionary source info, and alternative kanji rarity tables are really not relevant. the context is right there in front of me, so i already know how the word is being used. it seems like the real issue is that yomitan just dumps the entire dictionary entry into the popup window, instead of selecting only a few elements to display. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
toasted-nutbread opened issue FooSoft/yomichan#292 on 2019-11-26
There are a few things that have occasionally come up related to the styling of the results displayed. This issue is intended to track a lot of them, as well potential future research.
While this is partially completed, the usefulness of custom CSS could further extended by adding more metadata attributes to the display HTML and tweaking how certain content is displayed. For example, it could be possible to use the CSS
content
property to change what is displayed for tags in case someone wants to abbreviate (or omit).resize
doesn't work on Firefox, so maybe an alternative would be useful. Not sure how much use that would get however.The text was updated successfully, but these errors were encountered: