Skip to content

clean-conversation-headers - Update and improve#9628

Merged
fregante merged 7 commits into
mainfrom
clean-PR-again
May 30, 2026
Merged

clean-conversation-headers - Update and improve#9628
fregante merged 7 commits into
mainfrom
clean-PR-again

Conversation

@fregante

@fregante fregante commented May 27, 2026

Copy link
Copy Markdown
Member

Followup to #9166 and #9627

The code for clean-conversation-headers is messy and it's causing some wrapping issues in the area. conversation-activity-filter also adds its own wrapper, making the DOM even more flimsy.

@fregante fregante marked this pull request as ready for review May 27, 2026 11:53
@fregante fregante marked this pull request as draft May 27, 2026 11:58

@fregante fregante left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

TODO:

  • verify closing-remarks compat
  • verify and simplify conversation-activity-filter as well.
    The feature would add a wrapper to avoid an orphan, but I don’t think we really need that.
  • align the branches, they're a bit off (GitHub bug)

/* Hide "from" */
:is(span[data-component='Tooltip'], button[id^='ref-picker'])
+ span:not([class]) {
font-size: 0;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was a hacky way to target all element-less text nodes. Unfortunately they still existed in the DOM and caused invisible wrapping zones.

Since the feature already does substantial JS alterations, it doesn't make sense to rely on these hacks. JS also has safer methods to avoid bad text node matches (removeTextNodeContaining, assertNodeContent) which we were already using to target from anyway

font-size: 14px;
}

--margin: 4px;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not sure why we needed this. Unless it's a single ml-1 class, let's just prefer gap

@fregante

fregante commented May 30, 2026

Copy link
Copy Markdown
Member Author

Native

Screenshot 6

This PR

Screenshot 7

@fregante

fregante commented May 30, 2026

Copy link
Copy Markdown
Member Author

Native

Screenshot 8

This PR

Screenshot 9

Possible alternative

Adding a bunch of display: inline everywhere would be the best and safest use of the space available but it requires touching like 10 elements, so this is not part of the PR.

Screenshot 10

I'll just hope someone at GitHub notices this crappy layout and uses the one I proposed in #9166

Screenshot 11

@fregante fregante marked this pull request as ready for review May 30, 2026 08:03
@fregante fregante merged commit 668b365 into main May 30, 2026
18 checks passed
@fregante fregante deleted the clean-PR-again branch May 30, 2026 08:05
@github-actions

Copy link
Copy Markdown

To maintainers: Please add labels to this PR

@fregante fregante changed the title clean-conversation-headers - Refactor clean-conversation-headers - Update and improve May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

clean-conversation-headers re-order

1 participant