fix(dashboard): improve performance with OnPush change detection (#440)
* fix(dashboard): improve performance with OnPush change detection * fix(dashboard): refactor book card component for improved readability and performance * fix(tests): mock matchMedia for improved test compatibility * fix(tests): matchMedia mock for better CI compatibility and support * fix(dashboard): add clearAll method to BookBrowserScrollService and update tests * fix(dashboard): improve performance with content visibility and refactor styles * fix(dashboard): improve scroll performance with estimated total height and refactor layout * fix(tests): add mock for getCurrentUser in userService for improved test coverage * fix(dashboard): implement infinite scroll for book loading and scroll restoration * fix(tests): fix lint error * fix(tests): mock ResizeObserver and IntersectionObserver * fix(tests): mock ResizeObserver and IntersectionObserver (again) * fix(dashboard): improve accessibility and performance by updating aria attributes and optimizing animations * fix(dashboard): improve submenu accessibility and optimize virtual scroller performance * fix(dashboard): clean up imports and improve component structure * fix(dashboard): correct mobile check in author browser component * fix(dashboard): add OnDestroy lifecycle hook to BookBrowserComponent
This commit is contained in:
+5
-11
@@ -3,14 +3,6 @@
|
||||
overflow-y: auto;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
}
|
||||
@@ -78,7 +70,6 @@
|
||||
background: var(--p-surface-900);
|
||||
border-radius: 24px;
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
backdrop-filter: blur(20px);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -89,7 +80,6 @@
|
||||
|
||||
::ng-deep .p-dialog-mask {
|
||||
background-color: rgb(0 0 0 / 50%);
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
|
||||
.dashboard-settings-button {
|
||||
@@ -100,7 +90,6 @@
|
||||
|
||||
::ng-deep .p-button {
|
||||
box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
|
||||
backdrop-filter: blur(10px);
|
||||
background: rgb(var(--p-surface-900-rgb), 80%);
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
|
||||
@@ -123,3 +112,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.scroller-placeholder {
|
||||
height: 260px;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user