Skip to content

Conversation

@blued-gear
Copy link
Collaborator

@blued-gear blued-gear commented Nov 29, 2025

Posts on the Microblog page:

  • move vote buttons to the left
  • image in expandable ares
example-1 example-2

Posts on Combined page:

  • similar to threads
example

Current problems:

  • no title -> no link to click to open the post

@blued-gear blued-gear requested a review from melroy89 November 29, 2025 12:52
@melroy89
Copy link
Member

Could we also please move the images to a thumbnail format as well? Especially when its listed in the overview?

@blued-gear
Copy link
Collaborator Author

Could we also please move the images to a thumbnail format as well?

I'm not sure about that. It wouldn't work well with a longer text block beside or below it.
To make it works posts would need to be similarly designed as threads, which has its own problems (like that posts have no title line).
I like that posts are this distinguishable to threads, but that is just my personal opinion.

@melroy89
Copy link
Member

melroy89 commented Nov 29, 2025

Could we also please move the images to a thumbnail format as well?

I'm not sure about that. It wouldn't work well with a longer text block beside or below it. To make it works posts would need to be similarly designed as threads, which has its own problems (like that posts have no title line). I like that posts are this distinguishable to threads, but that is just my personal opinion.

See also community feedback: https://fedia.io/m/mbinmeta@gehirneimer.de/t/3026365/-/comment/13104842

So as a user with the combined view, my feedback would be this:

image

Or this:

image

As a user this annoyed me a lot, since I'm just scrolling through some content and suddenly 80%-100% of my screen is filled by a single post. The Interstellar app does not have this issue.

@melroy89
Copy link
Member

Also the test is failing.. :)

@melroy89 melroy89 added this to the v1.9.1 milestone Nov 30, 2025
@blued-gear blued-gear marked this pull request as draft November 30, 2025 18:04
@blued-gear blued-gear changed the title move vote-button to the left and use small user icon on posts Harmonize posts and threads in combined view Nov 30, 2025
@melroy89
Copy link
Member

melroy89 commented Dec 2, 2025

  • no title -> no link to click to open the post

Both Mastodon and PieFed solves this by making the card clickable. Be aware that when there is a link within the card text, that URL should also still work if you click on that.

And you could argue to make that consistent when threads as well then, meaning both threads and posts will have a clickable content..

But again, just keep in mind that you can still have URLs within the text itself that has priority in terms of "mouse clicking" . So clicking on these links should still work, well just look how Mastodon solves it.

@blued-gear blued-gear force-pushed the new/harmonized_combined_posts_layout branch from 23dc1f2 to 3322c33 Compare December 23, 2025 15:35
@blued-gear blued-gear requested a review from jwr1 December 23, 2025 15:42
@blued-gear blued-gear marked this pull request as ready for review December 23, 2025 16:09
@melroy89 melroy89 added the frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end label Jan 3, 2026
blued-gear and others added 2 commits January 5, 2026 16:59
# Conflicts:
#	assets/styles/components/_post.scss
#	templates/components/post.html.twig
@melroy89
Copy link
Member

melroy89 commented Jan 5, 2026

Its running now at kbin.melroy.org

@melroy89
Copy link
Member

melroy89 commented Jan 5, 2026

Why does the post has a down vote button here?
image

But not here:

image

Or I should ask it in reverse; should we show a down-vote in the combined view for posts?

@melroy89
Copy link
Member

melroy89 commented Jan 5, 2026

Also the text limit of the post is now much smaller then a thread.. (top is a thread, at the bottom of the image is a post)

image

I actually suspected the post to have a longer char limit before you cut off. right?

@blued-gear
Copy link
Collaborator Author

Or I should ask it in reverse; should we show a down-vote in the combined view for posts?

You're right, the down-vote button should not be there in the first place.

@blued-gear
Copy link
Collaborator Author

Also the text limit of the post is now much smaller then a thread.

This is odd as both use the same code for the body preview ({{ get_short_sentence(post.body|markdown|raw, striptags = true) }})

@melroy89
Copy link
Member

melroy89 commented Jan 6, 2026

Also the text limit of the post is now much smaller then a thread.

This is odd as both use the same code for the body preview ({{ get_short_sentence(post.body|markdown|raw, striptags = true) }})

it seems that it stops right after the first sentence / paragraph. It looks like that people are often creating a huge paragraph in a thread.. but in posts people use multiple smaller paragraphs.. Anyhow, for posts we should use different function maybe that should not short the text after the first paragraph?

@blued-gear
Copy link
Collaborator Author

Anyhow, for posts we should use different function maybe that should not short the text after the first paragraph?

Should I create a special function case for posts in combined or would it be better to modify get_short_sentence in general to stop at a fixed char count (+- if a sentence-end is near) in general?

@melroy89
Copy link
Member

melroy89 commented Jan 6, 2026

Anyhow, for posts we should use different function maybe that should not short the text after the first paragraph?

Should I create a special function case for posts in combined or would it be better to modify get_short_sentence in general to stop at a fixed char count (+- if a sentence-end is near) in general?

I personally believe we should treat a post differently, and do not stop at a new line, and also with a larger char limit etc.

@blued-gear
Copy link
Collaborator Author

I personally believe we should treat a post differently, and do not stop at a new line, and also with a larger char limit etc.

Done (except I reused the char-limit of threads so that both previews have a similar height).

We now even have tests for this shortening.

@melroy89
Copy link
Member

melroy89 commented Jan 8, 2026

one (except I reused the char-limit of threads so that both previews have a similar height).

Great! I still notice its removing new lines / markup language though. Is that something we want..? I mean if fine with either removing the new lines or showing them. If you compare it with like a Mastodon feed, I could imagine people would like to see the same markup text in the overview as if they would click on it.

@blued-gear
Copy link
Collaborator Author

I still notice its removing new lines / markup language though.

While not impossible, it would be way harder to calculate the resulting string length while keeping all the HTML tags needed for formatting.

I think for a preview the current approach is sufficient. Also perfect is the enemy of good; we can update the shortening function at a later time if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants