Skip to content

Fix release description hover jitter#3392

Draft
Herrtian wants to merge 1 commit into
rust-lang:mainfrom
Herrtian:fix/recent-releases-descriptions
Draft

Fix release description hover jitter#3392
Herrtian wants to merge 1 commit into
rust-lang:mainfrom
Herrtian:fix/recent-releases-descriptions

Conversation

@Herrtian

@Herrtian Herrtian commented Jul 2, 2026

Copy link
Copy Markdown

Summary

  • keep release descriptions truncated on hover so release rows do not change height
  • add title text so full descriptions remain available without layout shifts
  • extend the long description GUI test to cover hover row height

Fixes #173

Validation

  • cargo check -p docs_rs_web
  • cargo fmt --all --check
  • git diff --check

@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Jul 2, 2026
</div>
<div class="pure-u-1 pure-u-sm-14-24 pure-u-md-16-24 description">
<div class="pure-u-1 pure-u-sm-14-24 pure-u-md-16-24 description"
title="{{ release.description.as_deref().unwrap_or_default() }}">

@GuillaumeGomez GuillaumeGomez Jul 2, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice idea but doesn't work if the description contains a double quote. Double quotes need to be replaced.

View changes since the review

@GuillaumeGomez GuillaumeGomez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Test looks good, however like mentioned, we cannot simply add the description like that in case it contains double quotes.

View changes since this review

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

Labels

S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recent Releases shaking when descriptions are too long

2 participants