Commit Graph

9 Commits

Author SHA1 Message Date
4de9cf9b0b Lib: Remove previous lazy loading approach and replace with static aspect ratios
The element size must be valid before it is loaded, this is a problem
for cards, as they adapt to their content's size.
Previously I tried to load the first card non-lazily and measure its
dimensions for the next cards, but that was not stable on viewport
changes (could have measured the aspect ratio instead...).
Now, all the aspect ratios are just measured and defined manually,
stupid but simple.
2024-12-16 20:06:56 +01:00
fdf08d7b86 Lib: Implement (slightly broken) lazy loading of cards
Issues arise when the viewport size changes
2024-12-16 19:52:46 +01:00
ac359d86b8 Lib: Update DriverCard to reflect lib changes (lazy loading) 2024-12-16 18:17:22 +01:00
6b87d05de6 Lib: Update lazy components (dropdown + card now lazy) 2024-12-16 16:44:46 +01:00
98e7219636 Lib: Disable autocomplete on card inputs 2024-12-16 12:42:16 +01:00
262ac50356 Lib: Add imgwidth/imgheight to Card component so layout doesn't jump when lazyloading images 2024-12-16 02:28:31 +01:00
ee24f0fd99 Add "active" switches on data/season drivers page 2024-12-15 21:44:27 +01:00
20803c5663 Lib: Only pass single "team_select_value" into component except of all of them 2024-12-15 20:56:49 +01:00
b1f6865ad0 Lib: Implement team and driver cards 2024-12-14 17:13:45 +01:00