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

Fix iframe CSS #110

Closed hugolpz closed 3 months ago

hugolpz commented 4 months ago

Concerned files

Action

This is likely a classic need with answers online or via ChatGPT-likes.

Current state

All those states are derivated from the 2 files cited above. (My connexion was very slow so the video are black but they are working fine).

Modal

image

Popup

image

wpintegration

image

Arrows over video

Screenshot_2024-07-23-09-52-50-79_40deb401b9ffe8e1df2f1cc5ba480b12

saltykheera commented 4 months ago

Assign this issue to me.

hugolpz commented 4 months ago

Hello @saltykheera , happy to see you around. Given your enthusiasm lets assign this issue to you yes. 👍🏼

saltykheera commented 3 months ago

screen-recorder-fri-jul-26-2024-18-27-32.webm

@hugolpz does this type of design works for the btns ?

hugolpz commented 3 months ago

Hello @saltykheera , Nice pick for the song clip. (1) Can you share the code ? (2) Our Gallery with prev/next > iframe > video element approach is a bit weird it's better if you work on the extension directly. Were you able to load SignIt and inspect the video gallery ? (the thing which contains the iframe) (3) For prev/next let's follow the no chratjunk principle, minimize the noise and remove Prev and Next strings and only keep the arrows.

hugolpz commented 3 months ago

After verification, the generated html has the following structure :

<div class="signit-inline-container">

  <!-- Added comment: arrow prev -->
  <span class="oo-ui-widget ..." aria-disabled="true">
    <a class="oo-ui-buttonElement-button" ...>
      ... (prev)
    </a>
  </span>

  <div class="signit-panel-videos-gallery">
    <!-- Added comment: iframe 1 -->
    <div style="">
      <iframe ...></iframe>
      par Yug – Vidéo 1 sur 4
    </div>
    <!-- Added comment: iframe 2 -->
    <div style="display: none;">
      <iframe ...></iframe>
      par Elix – Vidéo 2 sur 4
    </div>
    <!-- Added comment: iframe 3 -->
    <div style="display: none;">
      <iframe ...></iframe>
      par Caroline – Vidéo 3 sur 4
    </div>
    <div style="display: none;">
      <iframe ...></iframe>
      par Roy Batty 82 – Vidéo 4 sur 4
    </div>
  </div>

  <!-- Added comment: arrow next -->
    <span class="oo-ui-widget ..." aria-disabled="true">
    <a class="oo-ui-buttonElement-button" ...>
      ... (prev)
    </a>
  </span>

</div>

I know it relies on ./SignItVideosGallery.js (gallery with prev/next and list of iframe), ./SignItVideosIframe.html (iframe and video). After inspecting it also relies on ooui.js (to generage the html buttons), oojs-ui-wikimediaui.min.css .

The code is more complex due to ooui , but since we want to phase it out, it woulld be a good idea to move those two buttons to simpler html code.

saltykheera commented 3 months ago

@hugolpz check if this works fine for now then if all ok i will create a PR

hugolpz commented 3 months ago

Let me check this tonight. ✌🏼

kabir-afk commented 3 months ago

Completed in referenced PR above 🎉🎉

hugolpz commented 3 months ago

Thank you for this push forward, screenshots below is what I get from PR #119.

Chrome

Screenshot from 2024-08-21 11-58-22

Firefox

Screenshot from 2024-08-21 12-01-52

Room for progress

I still see room for progress so I'm doing a rapid push as well.

Example porfolio : image