MapStatusbar styling
This commit is contained in:
@ -1,20 +1,17 @@
|
|||||||
import { CSSProperties } from 'react'
|
|
||||||
import { useMapStore } from '../../../store/map';
|
import { useMapStore } from '../../../store/map';
|
||||||
import { Divider, Text } from '@fluentui/react-components';
|
import { Divider, Text } from '@fluentui/react-components';
|
||||||
|
|
||||||
interface IMapStatusbarProps {
|
interface IMapStatusbarProps {
|
||||||
mapControlsStyle: CSSProperties;
|
|
||||||
map_id: string;
|
map_id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const MapStatusbar = ({
|
const MapStatusbar = ({
|
||||||
mapControlsStyle,
|
|
||||||
map_id
|
map_id
|
||||||
}: IMapStatusbarProps) => {
|
}: IMapStatusbarProps) => {
|
||||||
const { currentCoordinate, currentX, currentY, currentZ, statusText } = useMapStore().id[map_id]
|
const { currentCoordinate, currentX, currentY, currentZ, statusText } = useMapStore().id[map_id]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ ...mapControlsStyle, display: 'flex', gap: '1rem', padding: '0.25rem', width: '100%', borderRadius: 0 }}>
|
<div style={{ display: 'flex', gap: '1rem', padding: '0.25rem', width: '100%', borderRadius: 0, zIndex: 1 }}>
|
||||||
<Text size={200}>
|
<Text size={200}>
|
||||||
x: {currentCoordinate?.[0]}
|
x: {currentCoordinate?.[0]}
|
||||||
</Text>
|
</Text>
|
||||||
|
Reference in New Issue
Block a user