Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

60%
+1 −0
Q&A Expanding a comment thread changes the width of some posts

When a comment thread is expanded, the width of the post it is attached to in some cases increases. This seems to be rare (most posts do not change width when their comment threads are expanded), s...

0 answers  ·  posted 1y ago by trichoplax‭  ·  edited 1y ago by trichoplax‭

Question bug threads
#2: Post edited by user avatar trichoplax‭ · 2023-08-11T13:28:12Z (over 1 year ago)
Change title to reflect that this is only for some posts
  • Expanding a comment thread changes the width of a post
  • Expanding a comment thread changes the width of some posts
#1: Initial revision by user avatar trichoplax‭ · 2023-08-11T13:17:04Z (over 1 year ago)
Expanding a comment thread changes the width of a post
When a comment thread is expanded, the width of the post it is attached to in some cases increases. This seems to be rare (most posts do not change width when their comment threads are expanded), so I am only raising this for reference in case investigating it highlights something that needs to be fixed.

**I would consider this very low priority.**

An example of a question which shows effects on both paragraph layout and image size:
- [Although div tag is not allowed, it's rendered in the preview](https://meta.codidact.com/posts/284503)

## Before opening a comment thread
> ![The content of the question before expanding a comment thread](https://meta.codidact.com/uploads/fa0cwi37sa9ejsuvirh6ydunowie)

## After opening a comment thread
> ![The content of the question after expanding a comment thread](https://meta.codidact.com/uploads/cji1mcrxckoz17g9wjrlip6bna33)

The user card shifts to the right accordingly.

The paragraphs change their word wrapping, with some words jumping up onto a previous line. Note the inconsistent placement of the word "inconsistency" in the 4th paragraph up from the bottom of the post. This can also cause the height of the post to decrease if the word wrapping now requires fewer lines.

Wide images are displayed at post width, so they also get a little wider when a comment thread is expanded. Since they are displayed at a fixed aspect ratio, this also makes them a little taller.

These two effects both cause the height of the post to change, so if either of them is triggered by the width change then this causes the page to jump vertically by a small amount when a comment thread is expanded.