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

EnvelopeSkeleton: add filler on hover to prevent text shifting #10583

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GVodyanov
Copy link
Contributor

Fix 1/2 #10561

When hovering on envelopes in the envelope list, the preview text shouldn't expand when date is hidden

@@ -633,6 +637,15 @@ export default {
justify-content: center;
align-self: start;
margin-top: 0;
display: flex;
flex-direction: column-reverse;
align-items: flex-end;
Copy link
Contributor

Choose a reason for hiding this comment

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

these will not be applied because the parent is display none. It still jumps for me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GretaD The parent is display none only when not hovered, the idea here is that:

  • Before hover the date occupies space
  • After hover the actions occupy space, but less than the date

To fix this I added the filler only when actions are present, it takes up the same space that the date would have taken up. I just noticed however that there was a 1px difference and fixed it, could you please test again?

@GVodyanov GVodyanov force-pushed the style/fix-envelope-text-shifting branch from c247975 to 11d126c Compare February 10, 2025 17:02
@GVodyanov GVodyanov requested a review from GretaD February 10, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants