From 98fb0084d064959957515c910541d2a19b4075e9 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 16 Mar 2022 05:00:35 -0400 Subject: [PATCH] Update navigator settings --- src/components/navigator/NavigatorView.scss | 1 - .../views/room-info/NavigatorRoomInfoView.tsx | 25 ++++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/navigator/NavigatorView.scss b/src/components/navigator/NavigatorView.scss index 0e4c348b..76adf929 100644 --- a/src/components/navigator/NavigatorView.scss +++ b/src/components/navigator/NavigatorView.scss @@ -42,7 +42,6 @@ .nitro-room-info { width: $room-info-width; - max-height: 300px; } .nitro-room-link { diff --git a/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx b/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx index 35fc7a70..0322fdd5 100644 --- a/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx +++ b/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx @@ -116,7 +116,10 @@ export const NavigatorRoomInfoView: FC = props => - { roomInfoData.enteredGuestRoom.roomName } + + processAction('set_home_room') } className={ 'flex-shrink-0 icon icon-house-small cursor-pointer' + classNames({ ' gray': homeRoomId !== roomInfoData.enteredGuestRoom.roomId }) } /> + { roomInfoData.enteredGuestRoom.roomName } + { roomInfoData.enteredGuestRoom.showOwner && { LocalizeText('navigator.roomownercaption') } @@ -129,25 +132,20 @@ export const NavigatorRoomInfoView: FC = props => { LocalizeText('navigator.roomrating') } { roomInfoData.enteredGuestRoom.score } - { + { (roomInfoData.enteredGuestRoom.tags.length > 0) && - processAction('navigator_search_tag', 'test') }>#test - { (roomInfoData.enteredGuestRoom.tags.length > 0) && roomInfoData.enteredGuestRoom.tags.map(tag => + { roomInfoData.enteredGuestRoom.tags.map(tag => { return processAction('navigator_search_tag', tag) }>#{ tag } }) } } - - - processAction('set_home_room') } className={ 'flex-shrink-0 icon icon-house-small cursor-pointer' + classNames({ ' gray': homeRoomId !== roomInfoData.enteredGuestRoom.roomId }) } /> + + DispatchUiEvent(new NavigatorEvent(NavigatorEvent.TOGGLE_ROOM_LINK)) } /> + { hasPermission('settings') && + processAction('open_room_settings') } /> } - { hasPermission('settings') && - - processAction('open_room_settings') } /> - processAction('open_floorplan_editor') } /> - } { roomInfoData.enteredGuestRoom.description } @@ -173,6 +171,9 @@ export const NavigatorRoomInfoView: FC = props => + } }