From a87c667d2f4133028913bbdb3bba299ec671781f Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Thu, 8 Aug 2024 20:18:23 +0300 Subject: [PATCH 01/96] Circuit UI scale no longer suffers from FPEs and doesnt get covered by component menu (#85653) ## About The Pull Request Added rounding to 1 number after point to prevent FPEs and made the scale bar shrink when component menu gets open as to prevent it from getting covered by the menu, which made it impossible to see or increase current scale ## Changelog :cl: fix: Circuit UI scale no longer has weird rounding fix: Circuit UI no longer gets covered by components menu /:cl: --- .../tgui/components/InfinitePlane.jsx | 37 ++++++++++--------- .../interfaces/IntegratedCircuit/index.jsx | 1 + 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/tgui/packages/tgui/components/InfinitePlane.jsx b/tgui/packages/tgui/components/InfinitePlane.jsx index 5277f2ad7968..3be047f1a036 100644 --- a/tgui/packages/tgui/components/InfinitePlane.jsx +++ b/tgui/packages/tgui/components/InfinitePlane.jsx @@ -123,6 +123,7 @@ export class InfinitePlane extends Component { imageWidth, initialLeft = 0, initialTop = 0, + scalePadding, ...rest } = this.props; const { left, top, zoom } = this.state; @@ -169,23 +170,25 @@ export class InfinitePlane extends Component { {children} - - -