Skip to content

Commit

Permalink
Fix Camera Nanomap (#1215)
Browse files Browse the repository at this point in the history
## Что этот PR делает
Чинит режим карты на камерах. В душе не ебу как он сломался

## Изображения изменений

![image](https://github.com/ss220club/Paradise-SS220/assets/69762909/33fba220-afba-4a27-88e3-9a94138176d2)

## Changelog

:cl:
fix: Починен режим карты на камерах
/:cl:
  • Loading branch information
AyIong authored May 8, 2024
1 parent 468093e commit f157472
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
16 changes: 4 additions & 12 deletions tgui/packages/tgui/interfaces/CameraConsole220.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const CameraConsole220 = (props, context) => {
};

export const CameraConsoleMapContent = (props, context) => {
const { act, data, config } = useBackend(context);
const { act, data } = useBackend(context);
const cameras = selectCameras(data.cameras);
const [zoom, setZoom] = useLocalState(context, 'zoom', 1);
const { mapRef, activeCamera, stationLevel } = data;
Expand All @@ -108,18 +108,11 @@ export const CameraConsoleMapContent = (props, context) => {
activeCamera
);
return (
<Stack
fill
vertical
style={{
display: 'flex',
}}
>
<Stack fill>
<Stack.Item
height="100%"
style={{
display: 'flex',
flex: '0 0 475px',
flex: '0 0 474px',
}}
>
<NanoMap onZoom={(v) => setZoom(v)}>
Expand All @@ -142,7 +135,7 @@ export const CameraConsoleMapContent = (props, context) => {
))}
</NanoMap>
</Stack.Item>
<Stack.Item height="100%" resizable className="CameraConsole__right_map">
<Stack.Item height="100%" m={0.1} className="CameraConsole__right_map">
<div className="CameraConsole__header">
<div className="CameraConsole__toolbar">
<b>Камера: </b>
Expand Down Expand Up @@ -170,7 +163,6 @@ export const CameraConsoleMapContent = (props, context) => {
</div>
</div>
<ByondUi
resizable
className="CameraConsole__map"
overflow="hidden"
params={{
Expand Down
3 changes: 1 addition & 2 deletions tgui/packages/tgui/styles/interfaces/CameraConsole.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ $background-color: rgba(0, 0, 0, 0.33) !default;
position: relative;
display: flex;
flex: 1;
height: 90%;
bottom: 3em;
bottom: 32px;
flex-direction: column;
background-color: $background-color;
}
2 changes: 1 addition & 1 deletion tgui/public/tgui.bundle.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit f157472

Please sign in to comment.