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 attachments row not hiding at the same time as preview #3943

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

Conversation

BlueGreenMagick
Copy link

@BlueGreenMagick BlueGreenMagick commented Apr 9, 2024

Bug

In the Item Pane, Attachments section, when selected item changes from one with attachment to one without, a minor stutter is observed.This is because there is a slight delay (~20ms) between hiding the attachment preview and the attachment row.

The attachment preview is hidden first with CSS, then the row elements are removed with JS later. There is enough delay for the browser to paint in between, resulting in a frame where the attachment rows are visible, but not the preview. The rows are removed in consequent paint, which creates visual stutter.

Description

This PR hides the entire body (both the attachments preview and the rows) at the same time via the CSS rule that used to only hide the preview.

.togglePreview is currently not used anywhere (and doesn't seem to have been used at any time), so it doesn't affect anything.

when selecting item without attachment
@windingwind
Copy link
Contributor

This PR looks good.

btw, .togglePreview is introduced by certain commits that are later squashed before PR merging, that's why they're here.

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

Successfully merging this pull request may close these issues.

None yet

2 participants