[MIRROR] Fix lag when viewing ore silo long logs list (#26491)

* Fix lag when viewing ore silo long logs list (#81232)

![6OrHcTlN6Z](https://github.com/tgstation/tgstation/assets/137328283/89ed9091-e85b-4032-bae1-19200d5ad10d)

## About The Pull Request

- Logs tab is now using a virtual list that renders only visible
components, thus preventing lag when logs list grows too long. More
about it
[here](https://github.com/tgstation/tgstation/pull/81016#issuecomment-1921765723).
- Minor tweaks to Ore Silo UI to account for new backend changes and TG
style guide.

## Changelog

🆑
fix: Separated logs list into pages in ore silo UI, thus fixing lag when
logs list grows too long.
/🆑

* Fix lag when viewing ore silo long logs list

---------

Co-authored-by: Interception&? <137328283+intercepti0n@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-02-12 19:05:46 -05:00
committed by GitHub
co-authored by Interception&?
parent 122d1612bf
commit 4a0653bf54
2 changed files with 69 additions and 37 deletions
+3 -3
View File
@@ -136,8 +136,8 @@
"icon" = icon2base64(icon(initial(parent.icon), initial(parent.icon_state), frame = 1)),
"name" = parent.name,
"onHold" = !!holds[remote],
"location" = get_area_name(parent, TRUE)
)
"location" = get_area_name(parent, TRUE),
)
)
data["logs"] = list()
@@ -150,7 +150,7 @@
"action" = entry.action,
"amount" = entry.amount,
"time" = entry.timestamp,
"noun" = entry.noun
"noun" = entry.noun,
)
)