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

perf(content-answers): lazy load content answers in preview #3720

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

tjuanitas
Copy link
Contributor

No description provided.

@tjuanitas tjuanitas requested review from a team as code owners October 18, 2024 19:52
Comment on lines +92 to +96
.bcpr-PreviewHeader-contentAnswers {
display: flex;
align-items: center;
padding: 0 5px;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is vertical alignment issue when used alongside OpenWith

Before
Screenshot 2024-10-18 at 11 21 10 AM

After
Screenshot 2024-10-18 at 11 20 34 AM

Copy link
Contributor

Choose a reason for hiding this comment

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

🤨

jpan-box
jpan-box previously approved these changes Oct 18, 2024
tjiang-box
tjiang-box previously approved these changes Oct 18, 2024
@@ -31,7 +29,7 @@ describe('elements/content-preview/preview-header/PreviewHeader', () => {
const contentAnswersProps = { show };
const wrapper = getWrapper({ contentAnswersProps, file });

expect(wrapper.exists(ContentAnswers)).toBe(expected);
expect(wrapper.exists('.bcpr-PreviewHeader-contentAnswers')).toBe(expected);
Copy link
Contributor Author

@tjuanitas tjuanitas Oct 18, 2024

Choose a reason for hiding this comment

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

the component is now lazy loaded, so use classname to target since the component is now labeled as ForwardRef in tree

@tjuanitas tjuanitas dismissed stale reviews from tjiang-box and jpan-box via 8f3c40c October 18, 2024 20:20
@tjuanitas tjuanitas merged commit ec115f7 into box:master Oct 21, 2024
4 checks passed
@tjuanitas tjuanitas deleted the perf-loadable-content-answers branch October 21, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants