From 5defa0fd0cdf764791feafa533d03a8a4913dfea Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 9 Aug 2021 12:35:17 -0400 Subject: [PATCH] More draggable updates --- src/layout/mini-camera/NitroLayoutMiniCameraView.tsx | 2 +- src/layout/trophy/NitroLayoutTrophyView.tsx | 2 +- .../views/rentable-bot-chat/AvatarInfoRentableBotChatView.tsx | 4 ++-- .../furniture/friend-furni/FurnitureFriendFurniView.tsx | 2 +- .../room/widgets/furniture/stickie/FurnitureStickieView.tsx | 3 ++- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/layout/mini-camera/NitroLayoutMiniCameraView.tsx b/src/layout/mini-camera/NitroLayoutMiniCameraView.tsx index d209586d..ea1b34f8 100644 --- a/src/layout/mini-camera/NitroLayoutMiniCameraView.tsx +++ b/src/layout/mini-camera/NitroLayoutMiniCameraView.tsx @@ -25,7 +25,7 @@ export const NitroLayoutMiniCameraView: FC = pro }, [ roomId, getCameraBounds, textureReceiver ]); return ( - +
diff --git a/src/layout/trophy/NitroLayoutTrophyView.tsx b/src/layout/trophy/NitroLayoutTrophyView.tsx index 0d66ef49..3f34e210 100644 --- a/src/layout/trophy/NitroLayoutTrophyView.tsx +++ b/src/layout/trophy/NitroLayoutTrophyView.tsx @@ -8,7 +8,7 @@ export const NitroLayoutTrophyView: FC = props => const { color = '', message = '', date = '', senderName = '', onCloseClick = null } = props; return ( - +
diff --git a/src/views/room/widgets/avatar-info/views/rentable-bot-chat/AvatarInfoRentableBotChatView.tsx b/src/views/room/widgets/avatar-info/views/rentable-bot-chat/AvatarInfoRentableBotChatView.tsx index ac51bf0f..f39f7f26 100644 --- a/src/views/room/widgets/avatar-info/views/rentable-bot-chat/AvatarInfoRentableBotChatView.tsx +++ b/src/views/room/widgets/avatar-info/views/rentable-bot-chat/AvatarInfoRentableBotChatView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { DraggableWindow } from '../../../../../../layout'; +import { DraggableWindow, DraggableWindowPosition } from '../../../../../../layout'; import { ObjectLocationView } from '../../../object-location/ObjectLocationView'; import { AvatarInfoRentableBotChatViewProps } from './AvatarInfoRentableBotChatView.types'; @@ -8,7 +8,7 @@ export const AvatarInfoRentableBotChatView: FC +
test!!!!!
diff --git a/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx b/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx index 392967c0..e67b9e5f 100644 --- a/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx +++ b/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx @@ -119,7 +119,7 @@ export const FurnitureFriendFurniView: FC<{}> = props =>
} - { engravingLockData && engravingLockData.usernames.length > 0 && + { engravingLockData && engravingLockData.usernames.length > 0 &&
processAction('close_view') }>
diff --git a/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx b/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx index e0bad98d..d839f214 100644 --- a/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx +++ b/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx @@ -3,6 +3,7 @@ import { FC, useCallback, useState } from 'react'; import { GetRoomEngine, GetRoomSession, GetSessionDataManager } from '../../../../../api'; import { CreateEventDispatcherHook } from '../../../../../hooks/events/event-dispatcher.base'; import { useRoomEngineEvent } from '../../../../../hooks/events/nitro/room/room-engine-event'; +import { DraggableWindowPosition } from '../../../../../layout'; import { DraggableWindow } from '../../../../../layout/draggable-window/DraggableWindow'; import { ColorUtils } from '../../../../../utils/ColorUtils'; import { useRoomContext } from '../../../context/RoomContext'; @@ -114,7 +115,7 @@ export const FurnitureStickieView: FC<{}> = props => if(!stickieData) return null; return ( - +