diff --git a/src/layout/Layout.scss b/src/layout/Layout.scss index 29d09c48..3c31789c 100644 --- a/src/layout/Layout.scss +++ b/src/layout/Layout.scss @@ -25,4 +25,5 @@ @import './card/NitroCardView'; @import './draggable-window/DraggableWindow'; @import './loading-spinner/LoadingSpinnerView'; +@import './mini-camera/NitroLayoutMiniCameraView'; @import './trophy/NitroLayoutTrophyView'; diff --git a/src/layout/card/header/NitroCardHeaderView.tsx b/src/layout/card/header/NitroCardHeaderView.tsx index 17284bf5..3be15c6d 100644 --- a/src/layout/card/header/NitroCardHeaderView.tsx +++ b/src/layout/card/header/NitroCardHeaderView.tsx @@ -1,4 +1,4 @@ -import { FC } from 'react'; +import { FC, MouseEvent, useCallback } from 'react'; import { useNitroCardContext } from '../context/NitroCardContext'; import { NitroCardHeaderViewProps } from './NitroCardHeaderView.types'; @@ -7,6 +7,12 @@ export const NitroCardHeaderView: FC = props => const { headerText = null, onCloseClick = null } = props; const { simple = false } = useNitroCardContext(); + const onMouseDown = useCallback((event: MouseEvent) => + { + event.stopPropagation(); + event.nativeEvent.stopImmediatePropagation(); + }, []); + if(simple) { return ( @@ -14,7 +20,7 @@ export const NitroCardHeaderView: FC = props =>
{ headerText }
-
event.stopPropagation() } onClick={ onCloseClick }> +
@@ -28,7 +34,7 @@ export const NitroCardHeaderView: FC = props =>
{ headerText }
-
event.stopPropagation() } onClick={ onCloseClick }> +
diff --git a/src/layout/mini-camera/NitroLayoutMiniCameraView.scss b/src/layout/mini-camera/NitroLayoutMiniCameraView.scss new file mode 100644 index 00000000..a209d6ca --- /dev/null +++ b/src/layout/mini-camera/NitroLayoutMiniCameraView.scss @@ -0,0 +1,13 @@ +.nitro-room-thumbnail-camera { + width: 132px; + height: 192px; + background-image: url('../../assets/images/room-widgets/thumbnail-widget/thumbnail-camera-spritesheet.png'); + + .camera-frame { + position: absolute; + width: 110px; + height: 110px; + margin-top: 38px; + margin-left: 3px; + } +}