Merged PR 1994: feature(reward-list): Added Scroll to Top Button

feature(reward-list): Added Scroll to Top Button

Ref: #5414
This commit is contained in:
Nino Righi
2025-11-03 09:55:40 +00:00
committed by Lorenz Hilpert
parent 27f4ef490f
commit fcda6b9a75
2 changed files with 6 additions and 0 deletions

View File

@@ -62,3 +62,7 @@
</button>
</ui-empty-state>
}
<utils-scroll-top-button
class="flex flex-col self-end fixed bottom-[5.5rem] mr-6"
></utils-scroll-top-button>

View File

@@ -12,6 +12,7 @@ import { createRewardCatalogResource } from '../resources';
import { RewardListItemComponent } from './reward-list-item/reward-list-item.component';
import { InViewportDirective } from '@isa/ui/layout';
import { RewardCatalogStore } from '@isa/checkout/data-access';
import { ScrollTopButtonComponent } from '@isa/utils/scroll-position';
@Component({
selector: 'reward-list',
@@ -24,6 +25,7 @@ import { RewardCatalogStore } from '@isa/checkout/data-access';
EmptyStateComponent,
RewardListItemComponent,
InViewportDirective,
ScrollTopButtonComponent,
],
host: {
'[class]': '"w-full flex flex-col gap-4"',