Skip to content

Conversation

@PVince81
Copy link
Member

@PVince81 PVince81 commented Nov 5, 2020

Follow up to #4472

Description

  • refactor preview type handling to make it more accessible instead of having to rely on multiple flags
  • detect mime icon and failed cases and adjust the icon height accordingly

Testing

Steps

  1. Create a text file "corrupt-image.txt" with some contents and rename to "corrupt-image.jpg"
  2. Create another text file "data.dat"
  3. Upload both to a converstion

Before the fix

Tiny mime type icon and tiny failed icon

After the fix

Bigger mime type icons

@PVince81 PVince81 added bug feature: chat 💬 Chat and system messages labels Nov 5, 2020
@PVince81 PVince81 added this to the 💚 Next Major (21) milestone Nov 5, 2020
@PVince81 PVince81 self-assigned this Nov 5, 2020
Implement previewType in file preview that specifies what kind of
preview is being displayed.

Signed-off-by: Vincent Petry <[email protected]>
Whenever a mime type icon is displayed, apply min-height to make it look
bigger.

Signed-off-by: Vincent Petry <[email protected]>
@PVince81 PVince81 force-pushed the bugfix/noid/preview-mimeicon-height branch from b6204f6 to 98e9d48 Compare November 5, 2020 10:43
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

But please check the comments :-)

@PVince81 PVince81 requested a review from danxuliu November 6, 2020 08:33
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

@PVince81 PVince81 merged commit 3af57c8 into master Nov 6, 2020
@PVince81 PVince81 deleted the bugfix/noid/preview-mimeicon-height branch November 6, 2020 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants