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 video thumbnail override issue #2474

Merged
merged 4 commits into from
May 21, 2024
Merged

Fix video thumbnail override issue #2474

merged 4 commits into from
May 21, 2024

Conversation

SleeplessOne1917
Copy link
Member

Fixes #2418. Here is what it looks like now:

image

I made as few changes to the logic as I could. I'm afraid to touch it, especially since we don't have any tests set up. This makes me want to work on the leptos UI rewrite even more than I already do.

@SleeplessOne1917
Copy link
Member Author

I made a few other thumbnail related changes while I was at it.

Thumbnails now always show up, even on mobile:
image
image

I did this because I noticed that videos were unviewable on mobile unless I clicked the post title once to navigate to the post page, then again to actually see the video. Here is a video post on mobile on the main branch:
image

As you can see, you can't tell this is a video by looking at it.

Finally, always including the thumbnail, even for text-only posts, keeps posts on the feed a consistent height, which I personally think looks better.

.npmrc Outdated
@@ -0,0 +1 @@
ignore-scripts=true
Copy link
Member Author

Choose a reason for hiding this comment

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

I started getting an error about an opencollective postinstall script when I tried to install. Without ignoring scripts now, you can't install dependencies. This only started happening at the time I post this and I'm not sure why.

@dessalines
Copy link
Member

Finally, always including the thumbnail, even for text-only posts, keeps posts on the feed a consistent height, which I personally think looks better.

Seems fine to me. I'll fix the merge conflicts.

@dessalines dessalines merged commit 1f7c8dd into main May 21, 2024
0 of 2 checks passed
@SleeplessOne1917 SleeplessOne1917 deleted the video-thumbnail branch May 21, 2024 18:30
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.

MP4 videos in post URLs no longer embed when clicking the preview box next to the post title
2 participants