code100x / cms

Repo for https://app.100xdevs.com/
https://app.100xdevs.com/
1.06k stars 1.54k forks source link

feature: improve the captions settings ui and add keyboard shortcuts to change font size #1526

Open Gourav-21 opened 1 week ago

Gourav-21 commented 1 week ago

Current UI The settings of caption looks really bad and there is no shortcut to change the size of fonts while watching the video, i have to open the settings everytime to change the size.

image

Suggestions

shahkashish commented 4 days ago

To tackle the 2nd enhancement i.e. "add shortcuts to change size of font like its on youtube using - and +", we will have to

  1. Add a State for current Subtitle Font Size.
  2. Attach a keydown event listener to the component to capture the + and - keys.
  3. Dynamically adjust the font size of the subtitles according to the current state of subtitle and the key that is pressed. above steps would let us complete the task
shahkashish commented 4 days ago

If you like the approach lmk and i'll start working on it, even if you have different views you can tell me.

Gourav-21 commented 3 days ago

@shahkashish yeah please go on

shahkashish commented 2 days ago

could you assign it to me? as it is mentioned that task should be assigned first and then i have to make PR