mirror of
https://github.com/iv-org/invidious.git
synced 2025-02-01 17:15:14 -05:00
make format ran + badge works on dark mode
This commit is contained in:
parent
94bf5c0852
commit
a8a3d73c84
@ -22,6 +22,20 @@ body {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
#contents {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -13,7 +13,7 @@ end
|
||||
|
||||
def video_length_abbreviated(length)
|
||||
length_abbreviated = ""
|
||||
if length.days > 0
|
||||
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"
|
||||
@ -24,7 +24,6 @@ def video_length_abbreviated(length)
|
||||
end
|
||||
|
||||
return length_abbreviated
|
||||
|
||||
end
|
||||
|
||||
def elapsed_text(elapsed)
|
||||
|
Loading…
x
Reference in New Issue
Block a user