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

fix: Prepare image placeholder for not loaded image and prevent jumping #16941

Merged
merged 5 commits into from
Feb 28, 2024

Conversation

przemvs
Copy link
Contributor

@przemvs przemvs commented Feb 28, 2024

Description

Before: Image placeholder won't render correctly, have different size than rendered image.
Now: Image placeholder and image has same size.

Screenshots/Screencast (for UI changes)

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

Important details for the reviewers

(Delete this section if unnecessary)

  • use (x) data
  • can be reviewed commit-by-commit
  • be sure to look at ...

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 46.08%. Comparing base (792d538) to head (c2e33db).
Report is 5 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #16941      +/-   ##
==========================================
+ Coverage   46.03%   46.08%   +0.04%     
==========================================
  Files         746      746              
  Lines       24395    24411      +16     
  Branches     5582     5585       +3     
==========================================
+ Hits        11231    11249      +18     
+ Misses      11746    11743       -3     
- Partials     1418     1419       +1     

Comment on lines 269 to 276
{[StatusType.FAILED, StatusType.FEDERATION_ERROR].includes(status) && (
<CompleteFailureToSendWarning
{...(status === StatusType.FEDERATION_ERROR && {unreachableDomain: conversation.domain})}
isMessageFocused={msgFocusState}
onRetry={() => onRetry(message)}
/>
)}

Copy link
Contributor

Choose a reason for hiding this comment

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

let's leave this out of this PR, it's not related to Image scrolling at all

This doesn't take into account fed errors
image

Let me take care of this in an other pr

Copy link
Contributor

Choose a reason for hiding this comment

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

got the PR here #16943

can you revert 4727f52 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I revereted it manually.

@przemvs przemvs merged commit b191858 into dev Feb 28, 2024
11 checks passed
@przemvs przemvs deleted the fix/image-asset-not-scrolling branch February 28, 2024 14:48
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.

3 participants