Commit Graph

5 Commits

Author SHA1 Message Date
4e822690ed Comments 2024-12-17 17:20:22 +01:00
1a51b000ac Lib: Remove debug log 2024-12-16 21:11:37 +01:00
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
6b87d05de6 Lib: Update lazy components (dropdown + card now lazy) 2024-12-16 16:44:46 +01:00