Skip to content
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

Video length on page #4776

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

discollizard
Copy link

Good evening. This PR addresses the adjustments requested on this other (closed) PR that I was working on: #4274

@discollizard discollizard requested a review from a team as a code owner July 4, 2024 22:36
@discollizard discollizard requested review from SamantazFox and removed request for a team July 4, 2024 22:36
Comment on lines 26 to 38
.dark-theme .length-watch-page{
position: relative;
background-color: #fff;
color: rgba(35, 35, 35, 1);
border-radius: 2px;
padding: 4px;
font-size: 20px;
right: 0.25em;
bottom: 0.25em;
margin-left: 10px;
margin-right: 10px;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to specify these twice! In CSS the styles will inherit from the first .length-watch-page selector

Comment on lines +28 to +29
background-color: #fff;
color: rgba(35, 35, 35, 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're going to have to specify these again under the @media (prefers-color-scheme: dark) media query unfortunately as to support automatic theming

Comment on lines 16 to 24
if length.days > 0
length_abbreviated = "#{length.days} d #{length.hours} hr #{length.minutes} min"
elsif length.hours > 0
length_abbreviated = "#{length.hours} h #{length.minutes} min"
elsif length.minutes > 0
length_abbreviated = "#{length.minutes} min"
else
length_abbreviated = "#{length.seconds} seconds"
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make these translatable! It's better for non-English-speaking users ^^

Comment on lines -2 to -5
"Add to playlist": "Add to playlist",
"Add to playlist: ": "Add to playlist: ",
"Answer": "Answer",
"Search for videos": "Search for videos",
Copy link
Member

@SamantazFox SamantazFox Jul 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not change the indentation level in this file!
It will break out translation tool (Weblate)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants