FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Make video info section more concise

Open kommunarr opened this issue 2 years ago • 4 comments

Make video info section more concise

Pull Request Type

  • [x] Bugfix
  • [x] Feature Implementation

Related issue

closes #4336

Description

  • Puts title on its own row
  • Puts video info section on its own row
  • Puts subscribe button & video buttons on their own row
  • Fixes bug of videoOptions buttons overflowing the video info section that occurred on some viewport widths

Video

https://github.com/FreeTubeApp/FreeTube/assets/84899178/18ce83a6-c7e9-4001-9fe5-d6e6ea4a3711

Edit: modified the publish date, # of views, and likes to be 1.5 pts larger. Also narrowly reduced the margin between the subscription button and title.

Screenshot_20231115_170031

Testing

  • Ensure that appearance is great at all screen sizes
  • Ensure that the video options buttons no longer extend past the container when resizing viewport

Desktop

  • OS: OpenSUSE Tumbleweed
  • OS Version: 2023xxxx
  • FreeTube version: 0.19.1

Additional context

kommunarr avatar Nov 15 '23 15:11 kommunarr

I find it weird to see like number+icon left alone on the right now Feels like it can be moved to video info row

image

PikachuEXE avatar Nov 24 '23 00:11 PikachuEXE

@PikachuEXE Thank you, will consider it if others prefer as well - that is YouTube's approach that was considered for the main issue, but I don't really have a super strong preference

kommunarr avatar Nov 24 '23 02:11 kommunarr

It's not blocking especially if it's following YT Just feel like it look strange now especially with wide window

PikachuEXE avatar Nov 24 '23 03:11 PikachuEXE

This PR is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Dec 23 '23 01:12 github-actions[bot]

This PR is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Jan 23 '24 01:01 github-actions[bot]

Maybe the breakpoint can be set at a greater width? I see this with 901px width image

PikachuEXE avatar Jan 30 '24 01:01 PikachuEXE

@PikachuEXE The breakpoint at which "Up Next" is put on its own level?

kommunarr avatar Jan 30 '24 13:01 kommunarr

Sorry for being unclear, it's the buttons now arranged (squeezed) into a square

PikachuEXE avatar Jan 30 '24 23:01 PikachuEXE

Are you talking about setting it to wrap into a box earlier? If you mean the other way around, that is difficult to do without dynamically shrinking the button size, as this is just the flex behavior. What happens when it doesn't compress is this existing bug mentioned in the 4th bullet point in the description (taken from nightly):

Screenshot_20240130_171950

kommunarr avatar Jan 30 '24 23:01 kommunarr

Are you talking about setting it to wrap into a box earlier?

As I said Maybe the breakpoint can be set at a greater width? (e.g. 1000px)

PikachuEXE avatar Jan 31 '24 00:01 PikachuEXE

Sorry, I'm having trouble parsing what you mean. It's flex, so it's just wrapping dynamically based off of the space available.

kommunarr avatar Jan 31 '24 00:01 kommunarr

I mean the breakpoints for different panels in watch page (src/renderer/views/Watch/Watch.scss) (Probably replace all min-width: 901px w/ min-width: 1001px

1001px image 999px image

Also I think this should be rebased/merged with dev to be able to test probably due to new buttons

PikachuEXE avatar Jan 31 '24 01:01 PikachuEXE

Ah, I am terrible at reading, it seems! Increased it to 1000px from 900px.

Also I think this should be rebased/merged with dev to be able to test probably due to new buttons

Did this as well now

kommunarr avatar Jan 31 '24 02:01 kommunarr

A few more pixels would be great :) at 1005px: image

PikachuEXE avatar Jan 31 '24 02:01 PikachuEXE

Blerg, good callout. I just made it 1050px to compensate for other languages with a longer word for "Unsubscribe" or "Subscribe"

kommunarr avatar Jan 31 '24 02:01 kommunarr

community-post updated too?

PikachuEXE avatar Jan 31 '24 03:01 PikachuEXE

I modified the wrong likeCount from a different component & didn't realize it because I added the change in my local template. Not my brightest day...

kommunarr avatar Jan 31 '24 03:01 kommunarr

Oh wait, I enabled theatre mode and the breakpoint is not updated for it... 977px: image

PikachuEXE avatar Jan 31 '24 03:01 PikachuEXE

And it's even narrower if the sidebar is fully expanded. I don't think we can fully prevent the button container from wrapping early under these scenarios without picking an excessively large breakpoint

kommunarr avatar Jan 31 '24 04:01 kommunarr

I am saying that the breaking point for theatre mode should also be 1050px (since breakpoint for non theatre mode updated) (The one with &.useTheatreMode { & @include theatre-mode-template;) 1051px: image 1047px: image

PikachuEXE avatar Jan 31 '24 05:01 PikachuEXE