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

Mobile/tablet channel page & share button visual improvements #4061

Conversation

kommunarr
Copy link
Collaborator

@kommunarr kommunarr commented Sep 21, 2023

Mobile/tablet channel page & share button visual improvements

Pull Request Type

  • Feature Implementation

Related issue

None

Description

Channel page changes:

  1. Updates Channel page to have Channel tabs always show on tablet & mobile view, replacing the use of overflow-x: scroll
    a. This is a better user experience and more closely matches with what we do on the tabs on other pages (e.g., the Subscribe tab).
  2. Updates Channel view to work at regular mobile sizes for all locales
  3. Updates Channel view to work on even the smallest devices in all locales
  4. Updates mobile Channel view to be more aesthetically pleasing
  5. In perhaps the silliest set of events to occur, re-introduces the Fix subscribe button being clipped on Channel page (mobile/tablet view) #4057 fix which was broken by Fix buttons intersecting on Subscribed Channels tab #4058 (wherein the increased selectivity had overridden the fix)
  6. Prevents channel tabs from overflowing on desktop view in some locales

Share button modal changes:

  1. Updates share button to work at regular mobile and tablet sizes for all locales
  2. Updates share button to work on even the smallest devices in all locales

Screenshots

Before:
localhost_9080_en-broken

localhost_9080_(iPhone SE)-catala-broken

localhost_9080_(iPhone SE)-ru_broken

localhost_9080_en-v-broken

6:
localhost_9080_rs-broken-channel

After:

simplescreenrecorder-2023-09-20_19.22.02.mp4

Testing

Channel page:

  • Set locale to one with larger-than-English labels (e.g., Russian).
  • Navigate to a given author's channel page.
  • Use Chrome devtools to test different viewport widths and heights, ensuring that the Channel view doesn't break at any size.

Share button:

  • Set locale to one with larger-than-English labels (e.g., Russian).
  • Enter the Watch route for any video.
  • Open the ft-share-button dropdown.
  • Use Chrome devtools to test different viewport widths and heights, ensuring that the view doesn't break at any size.

Desktop

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

Additional context

Note that there are some pre-existing visual bugs with the Watch route, particularly with the open share button dropdown clipping into the side when going from dialog view -> widen to dropdown view. We can clear these up in a later PR, but I have to stop adding things to this one first.

The mobile side nav is also broken in languages where the label text overflows to >= 2 lines, and the Settings tab disappears on viewport widths below ~350px. This is also pre-existing and better saved for a later PR.

Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@FreeTubeBot FreeTubeBot merged commit bff3a2f into FreeTubeApp:development Sep 25, 2023
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 25, 2023
@absidue
Copy link
Member

absidue commented Sep 25, 2023

Just pulled down these changes, looks nice on mobile but takes up a significantly larger amount of space on desktop/wider screens, than before. Not sure I'm a fan, but I didn't get round to reviewing this pull request in time, so I don't really get to comment on that anymore.

full screen screenshots
before:
before

after:
after

@kommunarr
Copy link
Collaborator Author

kommunarr commented Sep 25, 2023

Erg, that was probably an unintended byproduct of resolving line number six that I somehow missed. Sorry about that, I can change that. Sorry about these mini fixes!

PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Sep 26, 2023
* development: (41 commits)
  Translated using Weblate (Finnish)
  Mobile/tablet channel page & share button visual improvements (FreeTubeApp#4061)
  Support multiple audio tracks and AV1 for Invidious by using the local API DASH manifest generator (FreeTubeApp#3942)
  Normalize ft-list-item grid height (FreeTubeApp#4043)
  Bump the stylelint group with 1 update (FreeTubeApp#4071)
  Bump the babel group with 1 update (FreeTubeApp#4069)
  Bump the eslint group with 1 update (FreeTubeApp#4070)
  Bump sass from 1.67.0 to 1.68.0 (FreeTubeApp#4072)
  Bump marked from 9.0.2 to 9.0.3 (FreeTubeApp#4073)
  Bump lefthook from 1.4.11 to 1.5.0 (FreeTubeApp#4074)
  Translated using Weblate (Chinese (Traditional))
  Translated using Weblate (Greek)
  Translated using Weblate (German)
  Translated using Weblate (Portuguese (Brazil))
  Translated using Weblate (French)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Portuguese)
  Translated using Weblate (Polish)
  ! Fix in sub view, restoring last tab is bugged when visible tabs do not include tab to be restored (FreeTubeApp#4064)
  Translated using Weblate (Ukrainian)
  ...

# Conflicts:
#	src/renderer/components/ft-prompt/ft-prompt.css
@absidue
Copy link
Member

absidue commented Sep 26, 2023

If you can fix number 6 without any visible differences to the normal layout that would be ideal :).

@efb4f5ff-1298-471a-8973-3d47447115dc

TBH i really like how that after picture looks except for the searchbar placement. If that could be on the same height of the tabs it would look pretty neat IMO

@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

efb4f5ff-1298-471a-8973-3d47447115dc commented Oct 7, 2023

nvm we should fix this

Captur2e

PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Oct 8, 2023
* feature/playlist-2023-05: (176 commits)
  ! Fix playlist item fetching for local API (FreeTubeApp#4102)
  ! Fix watch page video published time parsing (FreeTubeApp#4105)
  Translated using Weblate (Serbian)
  Bump youtubei.js from 6.4.0 to 6.4.1 (FreeTubeApp#4090)
  Bump rimraf from 5.0.1 to 5.0.5 (FreeTubeApp#4091)
  Bump the stylelint group with 2 updates (FreeTubeApp#4088)
  Bump electron from 22.3.24 to 22.3.25 (FreeTubeApp#4089)
  Translated using Weblate (Bulgarian)
  Update FT history import to accept key lastViewedPlaylistId (FreeTubeApp#4038)
  ! Fix ft-video having different URLs in links
  Translated using Weblate (Dutch)
  Translated using Weblate (Lithuanian)
  Translated using Weblate (Japanese)
  Translated using Weblate (Croatian)
  Translated using Weblate (Estonian)
  Translated using Weblate (Croatian)
  ! Fix external player handling for video in local playlist
  Translated using Weblate (Finnish)
  Mobile/tablet channel page & share button visual improvements (FreeTubeApp#4061)
  Support multiple audio tracks and AV1 for Invidious by using the local API DASH manifest generator (FreeTubeApp#3942)
  ...
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.

None yet

6 participants