-
Notifications
You must be signed in to change notification settings - Fork 0
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
Красивая навигация #57
Conversation
vklachkov
commented
Oct 7, 2024
- Виртуальные списки для повышения перфа и починки навигации
- Организаторы
- Жюри
- frontend: Срабатывает защита от закрытия на странице участника без редактирования #28
- frontend: Не работает кнопка "На главную" #29
- frontend: Сохранение позиции скролла при переходе между страницами #30
9f20f7a
to
cfa93ff
Compare
@if (isParticipantsLoading) { | ||
<!-- TODO(vklachkov): Wrap cards-container witgh nz-spin and remove if's and style hacks --> |
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.
<!-- TODO(vklachkov): Wrap cards-container witgh nz-spin and remove if's and style hacks --> | |
<!-- TODO(vklachkov): Wrap cards-container width nz-spin and remove if's and style hacks --> |
max-width: var(--container-width); | ||
left: 50%; | ||
transform: translateX(-50%); | ||
margin: 2em 0em; |
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.
Через padding если сделать не воркс?
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.
Не работает. И по хорошему надо и margin убрать, а вместо него заиспользовать paddingstart от самой библиотеки
transform: translateX(-50%); | ||
margin: 2em 0em; | ||
|
||
app-participant-card { |
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.
Добавь карточке класс, а не делай селектор по тегу. Можно как раньше назвать "participant-card"
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.
А зачем тут класс? Компонент больше нигде не используется
@@ -79,6 +84,9 @@ export class OrganizerPage extends BaseComponent implements OnInit, OnDestroy { | |||
protected readonly ParticipantStatus = ParticipantStatus; | |||
protected readonly Sort = Sort; | |||
protected readonly Order = Order; | |||
|
|||
private environmentInjector = inject(EnvironmentInjector); |
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.
private environmentInjector = inject(EnvironmentInjector); | |
private readonly environmentInjector = inject(EnvironmentInjector); |
@@ -89,6 +97,9 @@ export class OrganizerPage extends BaseComponent implements OnInit, OnDestroy { | |||
protected participants: Participant[] = []; | |||
protected isParticipantsLoading: boolean = false; | |||
|
|||
protected scrollElement = viewChild<ElementRef<HTMLDivElement>>('scrollElement') |
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.
protected scrollElement = viewChild<ElementRef<HTMLDivElement>>('scrollElement') | |
protected readonly scrollElement = viewChild<ElementRef<HTMLDivElement>>('scrollElement') |
Вообще не помню, мб можно приватным полем сделать?
Ну и тип для этого всего
@@ -89,6 +97,9 @@ export class OrganizerPage extends BaseComponent implements OnInit, OnDestroy { | |||
protected participants: Participant[] = []; | |||
protected isParticipantsLoading: boolean = false; | |||
|
|||
protected scrollElement = viewChild<ElementRef<HTMLDivElement>>('scrollElement') | |||
protected virtualizer: AngularVirtualizer<HTMLDivElement, Element>| null = null; |
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.
protected virtualizer: AngularVirtualizer<HTMLDivElement, Element>| null = null; | |
protected virtualizer: AngularVirtualizer<HTMLDivElement, Element> | null = null; |
this.showErrorNotification('Ошибка при получении данных об участниках', err); | ||
|
||
this.isParticipantsLoading = false; | ||
this.cdr.markForCheck(); | ||
this.showErrorNotification('Ошибка при получении данных об участниках', err); |
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.
Эти нотификашки всегда в конце шли, везде так
Перенесено на 2025. |