-
Notifications
You must be signed in to change notification settings - Fork 132
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(core): fixed card layout performance #7701
Conversation
✅ Deploy Preview for fundamental-ngx ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
4faebe6
to
c655992
Compare
c655992
to
4b4ed90
Compare
This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days |
Visit the preview URL for this PR (updated for commit 0aa4b22): https://fundamental-ngx-gh--pr7701-fix-core-fixed-card-csbunxei.web.app (expires Mon, 28 Mar 2022 09:01:17 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one!
noticed a few minor things
libs/core/src/lib/fixed-card-layout/fixed-card-layout.component.ts
Outdated
Show resolved
Hide resolved
libs/core/src/lib/fixed-card-layout/fixed-card-layout.component.ts
Outdated
Show resolved
Hide resolved
libs/core/src/lib/fixed-card-layout/fixed-card-layout.component.ts
Outdated
Show resolved
Hide resolved
libs/core/src/lib/fixed-card-layout/fixed-card-layout.component.ts
Outdated
Show resolved
Hide resolved
libs/core/src/lib/utils/drag-and-drop/dnd-keyboard-group/dnd-keyboard-group.directive.ts
Outdated
Show resolved
Hide resolved
...fixed-card-layout/fixed-card-layout-docs-header/fixed-card-layout-docs-header.component.html
Show resolved
Hide resolved
This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days |
libs/core/src/lib/fixed-card-layout/fixed-card-layout.component.scss
Outdated
Show resolved
Hide resolved
This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days |
8e4e539
to
5f08b54
Compare
I do not know what, but something is wrong. When I launch locally I get this: |
This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days |
5f08b54
to
ec39e6f
Compare
Try now, but do |
This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days |
9da6a70
to
3b95b8d
Compare
BREAKING CHANGE: * CardDropped interface from the FixedCardLayoutComponent changed * Input prop dndKeyboardDisabled removed from DndKeyboardItemDirective
3b95b8d
to
18f263b
Compare
Related Issue(s)
Closes #5511
Description
Fixed card layout rework due to the performance issues. Previously there were nested
*ngFor
that were updated on the window's resize doing recalculation/reinitialization of the columns.New approach based on the angular/components#13372 (comment), with the layout approach from https://tobiasahlin.com/blog/masonry-with-css. That makes possible to have only one array with all the cards, that positioned using
flex-direction: column
while keeping Z flow of the cards.Also, due to the new approach
fdDndKeyboardGroup
&fdDndKeyboardItem
directives that provide dnd with keyboard were extended and rtl support added.Screenshots
No visual changes.
Breaking changes
Wiki https://github.com/SAP/fundamental-ngx/wiki/0.34.0-Breaking-Changes