invidious icon indicating copy to clipboard operation
invidious copied to clipboard

Make number of columns in feed customizable

Open psvenk opened this issue 4 years ago • 13 comments

Closes #1018. Add a new preference feed_cols and use it to determine the width of each video relative to the feed.

Please note that this only works when the value of feed_cols is a factor of 5 or 24, because of the way that Pure CSS's grid system works. If it would be beneficial to give the user a warning or to reject invalid inputs instead of blindly following the user's request (which would cause the number of columns to be effectively 1), I could also implement that.

psvenk avatar Apr 18 '20 00:04 psvenk

Wouldn't it be better to allow only a specific number of columns (let's say from 3 to 10) and then map that to pre-defined pure-g classes? Less hassle for the user or instance owner, and it makes sure that we won't have weird results.

In essence:

  • 3 => pure-g-*-1-3
  • 4 => pure-g-*-1-4
  • 5 => pure-g-*-1-5
  • 6 => pure-g-*-1-6
  • 7 => pure-g-*-3-24 (as this one must be approximated, maybe don't propose it?)
  • 8 => pure-g-*-1-8

And also, please add your translation key to ALL locales files. I spent a few days doing #1920, I don't want to do it again! And it also helps translators by showing them an "untranslated string" in weblate!

SamantazFox avatar Apr 16 '21 14:04 SamantazFox

@SamantazFox Thank you for your review. I just rebased my branch on the latest master and adapted to changes made over the past year, and I also added the translation key to the rest of the locale files. I'll test my rebased changes and respond to your other comment some time soon, after I sort out an issue with Docker and get Invidious to start properly.

psvenk avatar Apr 17 '21 20:04 psvenk

@TheFrenchGhosty Could you please request a review from @saltycrys for this PR? Thanks

syeopite avatar Apr 21 '21 11:04 syeopite

Just tested and it works perfectly! I just have one small concern. Since a column size of 7 isn't supported, would it be possible to add a warning about that?

syeopite avatar May 16 '21 06:05 syeopite

This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Jun 30 '21 12:06 github-actions[bot]

Sorry for the delay.

@syeopite I'll try to get this done some time soon.

psvenk avatar Jun 30 '21 13:06 psvenk

This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Aug 15 '21 12:08 github-actions[bot]

This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Nov 26 '21 01:11 github-actions[bot]

Bump

TheFrenchGhosty avatar Nov 26 '21 17:11 TheFrenchGhosty

This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Jan 11 '22 01:01 github-actions[bot]

This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Mar 28 '22 01:03 github-actions[bot]

This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Jun 17 '22 02:06 github-actions[bot]

This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Aug 31 '22 12:08 github-actions[bot]