-
Notifications
You must be signed in to change notification settings - Fork 868
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
Update 'Only Show Latest Video for Each Channel' setting to handle a custom number of videos per channel #5901
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested this yet, but good work! One potential suggestion: thoughts on having the label change to Limit the number of videos displayed for each channel to
when the toggle is enabled and making the input an inline 2-digit-wide one? That way it could read out like a sentence.
Its not automatically, you need to remove it. |
I imagine I have to remove it from all the files not just |
I personally prefer the latter (with a On that note, you'll also need an |
Head branch was pushed to by a user without write access
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Head branch was pushed to by a user without write access
eef0111
to
ad8b129
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Head branch was pushed to by a user without write access
ad8b129
to
e183f1d
Compare
/> | ||
<div class="onlyShowLatestFromChannel"> | ||
<ft-toggle-switch | ||
:id="'onlyShowLatestFromChannel'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:id="'onlyShowLatestFromChannel'" | |
id="onlyShowLatestFromChannel" |
/> | ||
<ft-input | ||
v-if="onlyShowLatestFromChannel" | ||
:placeholder="'1'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:placeholder="'1'" | |
placeholder="1" |
:show-action-button="false" | ||
input-type="number" | ||
:value="onlyShowLatestFromChannelNumber" | ||
:aria-labelledby="'onlyShowLatestFromChannel'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:aria-labelledby="'onlyShowLatestFromChannel'" | |
aria-labelledby="onlyShowLatestFromChannel" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use nested CSS unless there is absolutely no other way, as it breaks Vue's scoped CSS functionality, in this case a class would probably be a lot more suitable than doing some nth-child stuff. That would also allow you to use a plain CSS file.
Thats correct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing how the input and the settings work right now I don't think it's possible to have a limit enforced nicely right now since there is no validation at all. For the alignment something like this would be better: simplescreenrecorder-2024-10-23_16.23.50.mp4Layout not moving and it looks the same on lower resolutions. Maybe instead of having an input a slider would be better? |
Hmm i think thats a good suggestion to go the slider route. Also makes it more uniform with the other settings |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
922ef31
to
dd2fc9c
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well but I will let you guys approve
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Update 'Only Show Latest Video for Each Channel' setting to handle a custom number of videos per channel
Pull Request Type
Related issue
closes #5265
Description
Updated the
Only Show Latest Video for Each Channel
setting to now handle a custom number of videos per channel to be shown.Added a new variable to keep track of the number so the user can change it if the option is enabled.
I didn't change the existing setting so this way this feature is retro compatible.
Screenshots
simplescreenrecorder-2024-11-16_12.22.51.mp4
Testing
Enabled the feature and changed the number different times while checking that the Videos, Shorts, and Live tabs showed the correct amount of videos for each channel.
Desktop
Additional context
I didn't remove the old localisation string, is it removed automatically or do I need to do it.