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

Fix: search history text overflows if search term is long #6728

Merged

Conversation

ozrendev
Copy link
Contributor

@ozrendev ozrendev commented Feb 2, 2025

Fix search history text overflows if search term is long

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

closes #6727

Description

Truncates text that exceeds the length of the search history input

Screenshots

Before
2025-02-02_17-09-46

After
2025-02-02_17-10-27

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Feb 2, 2025
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) February 2, 2025 04:32
@absidue
Copy link
Member

absidue commented Feb 2, 2025

When making UI changes it is always a good idea to provide before and after screenshots. Please re-add the parts of the template that you removed and add screenshots to it.

Copy link
Member

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

Choose a reason for hiding this comment

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

When we wanted to introduce this feature i pointed out that the users werent able to see the full search query, Unable to see full search suggestion

Reply

By fixing the overflow you introduce the issue i pointed out before

VirtualBoxVM_p5c7tA4xB7

@ozrendev
Copy link
Contributor Author

ozrendev commented Feb 2, 2025

When we wanted to introduce this feature i pointed out that the users werent able to see the full search query, Unable to see full search suggestion

Okay I wasn't aware that was an issue. Was there a decision made about how it should look?

This is what is looks like when the text contained and wrapped. Otherwise I guess you can keep the ellipsis cut off but have an alt text/tooltip when hovered over?
2025-02-02_17-02-19

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

This is how it looked before

VirtualBoxVM_AOBkZtRQvy.mp4

auto-merge was automatically disabled February 13, 2025 01:30

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) February 13, 2025 01:30
@ozrendev
Copy link
Contributor Author

I've removed the ellipsis and adjusted it to look like before. Although I think the icon is a few pixels off, it still looks very similar.

2025-02-12_20-29-21

Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: changes requested labels Feb 17, 2025
auto-merge was automatically disabled February 18, 2025 16:15

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) February 18, 2025 16:15
@FreeTubeBot FreeTubeBot merged commit 80cac00 into FreeTubeApp:development Feb 19, 2025
10 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Feb 19, 2025
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Feb 20, 2025
* development: (58 commits)
  Convert FtSubscribeButton and watch-video-info SCSS to CSS (FreeTubeApp#6814)
  Use numbers instead of strings for the DBActions and SyncEvents constants (FreeTubeApp#6815)
  Translated using Weblate (English (United Kingdom))
  Fix: search history text overflows if search term is long (FreeTubeApp#6728)
  Check if a keyboard composition session is active when pressing 'Enter' on ft-input (FreeTubeApp#6799)
  use hq img (FreeTubeApp#6826)
  Move the choose default folder logic to the main process (FreeTubeApp#6811)
  Translated using Weblate (French)
  Translated using Weblate (Turkish)
  Set process.platform at build time (FreeTubeApp#6784)
  Use logical spec for float (FreeTubeApp#6783)
  Migrate DataSettings to the composition API (FreeTubeApp#6785)
  Local API: Improve audio quality by sorting streams, highest bitrate first (FreeTubeApp#6807)
  Bump sass from 1.84.0 to 1.85.0 (FreeTubeApp#6825)
  Bump webpack from 5.97.1 to 5.98.0 (FreeTubeApp#6820)
  Bump postcss from 8.5.1 to 8.5.2 in the stylelint group (FreeTubeApp#6819)
  Bump the babel group with 2 updates (FreeTubeApp#6817)
  Bump globals from 15.14.0 to 15.15.0 (FreeTubeApp#6823)
  Bump sass-loader from 16.0.4 to 16.0.5 (FreeTubeApp#6822)
  Bump eslint from 9.20.0 to 9.20.1 in the eslint group (FreeTubeApp#6818)
  ...

# Conflicts:
#	src/renderer/components/watch-video-info/watch-video-info.scss
#	src/renderer/components/watch-video-info/watch-video-info.vue
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.

[Bug]: search history text overflows if search term is long
6 participants