From 3d22bbd34eb6cd2c47f1ac0c213da35c27b00a4d Mon Sep 17 00:00:00 2001 From: DOOM Date: Sat, 1 Jul 2023 20:21:54 -0400 Subject: [PATCH] fix --- tgui/packages/tgui/interfaces/CanvasLayer.js | 2 +- tgui/packages/tgui/interfaces/TacticalMap.tsx | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/tgui/packages/tgui/interfaces/CanvasLayer.js b/tgui/packages/tgui/interfaces/CanvasLayer.js index be885f29bf63..a4b90c0a9e3b 100644 --- a/tgui/packages/tgui/interfaces/CanvasLayer.js +++ b/tgui/packages/tgui/interfaces/CanvasLayer.js @@ -171,7 +171,7 @@ export class CanvasLayer extends Component { if (selection === 'export') { this.props.onImageExport( - String(this.canvasRef.current.toDataURL('image/jpeg', 0.4)) + String(this.canvasRef.current.toDataURL('image/jpeg', 0.5)) ); return; diff --git a/tgui/packages/tgui/interfaces/TacticalMap.tsx b/tgui/packages/tgui/interfaces/TacticalMap.tsx index 2e0b4a8abbe2..3b80f8646fd4 100644 --- a/tgui/packages/tgui/interfaces/TacticalMap.tsx +++ b/tgui/packages/tgui/interfaces/TacticalMap.tsx @@ -1,12 +1,5 @@ import { useBackend } from '../backend'; -import { - Button, - Dropdown, - Section, - Stack, - ProgressBar, - Box, -} from '../components'; +import { Button, Dropdown, Section, Stack, ProgressBar, Box } from '../components'; import { Window } from '../layouts'; import { CanvasLayer } from './CanvasLayer'; @@ -144,8 +137,7 @@ export const TacticalMap = (props, context) => { good: [-Infinity, 0.33], average: [0.33, 0.67], bad: [0.67, Infinity], - }} - > + }}> {Math.ceil(timeLeft / 10)} seconds until the canvas changes can be updated