lingua-libre / SignIt

🌻 Lingua Libre SignIt web-browser extension translates selected word in French Sign Language via an elegant pop up so you learn sign language while reading online.
https://addons.mozilla.org/en-US/firefox/addon/lingua-libre-signit/
MIT License
15 stars 15 forks source link

Make video and wiktionary blocks optional #36

Closed hugolpz closed 5 months ago

hugolpz commented 2 years ago

Some language communities may have and therefore need :

Also, we would gain to make these blocks optional, based on the language ui used and user settings.

Actions

saltykheera commented 1 year ago

signit

something just like this !!!

hugolpz commented 11 months ago

Hello @saltykheera,

✅ In settings toggle

As long overdue I wanted to implement this showvideo toggle setting along the usual setting approach such as #35, which gather all settings in the same place. Your recent proposal also pushed me to dive back into the code and to push forward, so I did so yesterday :

Modal size

I finished the CSS, should be okish now.

🤔 In modal toggle

Hello @saltykheera, Your idea of putting this setting right in the interface is interesting and more human friendly. (I see my in settings solution hides this important setting too much.) Ideal would be to have both approach working, in settings and in modal, with UI and value storage synchronised. We can continue to work in this direction, first by getting it to be well design and work in isolation (should be doable). Then to synch it up with the deep setting (this will be a bit complex due to web-extensions scopes). I isolated your code proposal into a new clean commit for readability :

Current

Wanted

signit

Reflexion

These codes are moving forward but something better is need. Since this is not a 0|1 switch but potentially a tri-switch with:

There are still better design to think : select input ? etc. Anyway, these recent codes helps to dive in and assess the existing side effect codes to consider, mostly : localStorage ; modal resizing ; css edits.

hugolpz commented 11 months ago

@saltykheera if we want to keep a consistent code this seems a larger project than I formerly anticipated. I will therefore split this issue in sub-issues :

Are you interested to join or follow this effort ? 👯

pushkar707 commented 8 months ago

Hi, I would like to do in modal toggle, how should we go about it? We can add a dropdown menu in the model to select three of the following options:-

1) Show only video 2) Show only text 3) Show both video and text.

Another approach to do this is that we have two toggle buttons as:- 1) Show/Hide Video 2) Show/Hide definition

Personally, I feel second approach is bit more user-friendly, but either can be done

saltykheera commented 8 months ago

@hugolpz i am very much interested in solving this issue. under your guidance. i will start working on it from 17april.

hugolpz commented 5 months ago

In-modal toggle

@saltykheera hello, I'm closing this ticket, I removed yours and my JS exploration for in-modal toggle. Kabir is revamping this web extension, the toggle feature is available via the settings. We keep it simple in the code and on github for now. Note: I kept your CSS within the css file since its design is witty. 👍🏼 See f75a4187d0626a501182f7a924cb6b818ec1bb53 .