From f41aafaae94bc89a2201809857d9bcbaa732a6df Mon Sep 17 00:00:00 2001 From: MyNameIsBatman Date: Sun, 13 Feb 2022 13:10:15 -0300 Subject: [PATCH] Update navcigator/create-room layout --- .../creator/NavigatorRoomCreatorView.scss | 5 +- .../creator/NavigatorRoomCreatorView.tsx | 80 +++++++++---------- 2 files changed, 39 insertions(+), 46 deletions(-) diff --git a/src/views/navigator/views/creator/NavigatorRoomCreatorView.scss b/src/views/navigator/views/creator/NavigatorRoomCreatorView.scss index ea0addeb..611a27c2 100644 --- a/src/views/navigator/views/creator/NavigatorRoomCreatorView.scss +++ b/src/views/navigator/views/creator/NavigatorRoomCreatorView.scss @@ -1,7 +1,8 @@ .room-model-list { display: flex; - overflow-x: auto; - scroll-snap-type: x mandatory; + flex-direction: column; + overflow-y: auto; + scroll-snap-type: y mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; diff --git a/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx b/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx index bfc1bb51..a8e877f4 100644 --- a/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx +++ b/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx @@ -66,64 +66,56 @@ export const NavigatorRoomCreatorView: FC = props }, [ name, description, category, visitorsCount, tradesSetting, selectedModelName ]); return ( -
-
-
-
- - setName(e.target.value) } /> -
+
+
+
+ + setName(e.target.value) } />
-
-
- - -
+
+ +
-
-
- - -
+
+ +
-
-
- - -
+
+ +
+
+ + setDescription(e.target.value) } /> +
+
-
- - setDescription(e.target.value) } /> -
-
+
{ NAVIGATOR_ROOM_MODELS.map(model => { - return (
selectModel(model.name) } className={ 'h-100 cursor-pointer d-flex flex-column justify-content-center align-items-center p-1 me-2 rounded border border-2' + classNames({ ' active': selectedModelName === model.name, ' disabled': GetSessionDataManager().clubLevel < model.clubLevel }) }> + return (
selectModel(model.name) } className={ 'cursor-pointer position-relative d-flex flex-column justify-content-center align-items-center p-1 rounded border border-2' + classNames({ ' active': selectedModelName === model.name, ' disabled': GetSessionDataManager().clubLevel < model.clubLevel }) }> + { model.clubLevel > HabboClubLevelEnum.NO_CLUB &&
}
{ model.tileSize } { LocalizeText('navigator.createroom.tilesize') }
- { model.clubLevel > HabboClubLevelEnum.NO_CLUB && }
); }) }
-
); }