mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.
https://docs.mainsail.xyz
GNU General Public License v3.0
1.74k stars 376 forks source link

fix(HistoryPanel): Fix History thumbnails of files in folders #2010

Closed mdziekon closed 2 months ago

mdziekon commented 2 months ago

Description

Fixes missing thumbnails in History page for files placed in non-root folders.

Bonus: refactors thumbnails url generation code so that it is reused for both small & big thumbnails, and improves TypeScript coverage by eliminating unwanted any usage.

Related Tickets & Documents

2009

Mobile & Desktop Screenshots/Recordings

Before

obraz

After

obraz