Lib: Implement (slightly broken) lazy loading of cards

Issues arise when the viewport size changes
This commit is contained in:
2024-12-16 19:52:46 +01:00
parent df0402a318
commit d398ab67e0
6 changed files with 61 additions and 5 deletions

View File

@ -77,6 +77,7 @@
</script>
<LazyCard
group="SubstitutionCard"
imgsrc={get_by_value(drivers, "id", substitution?.substitute ?? "")?.headshot_url ??
headshot_template}
imgwidth={DRIVER_HEADSHOT_WIDTH}