diff --git a/app/pages/PageEnigma/comps/PreviewEngineCamera/index.tsx b/app/pages/PageEnigma/comps/PreviewEngineCamera/index.tsx
index f30046bc00..b5d3073829 100644
--- a/app/pages/PageEnigma/comps/PreviewEngineCamera/index.tsx
+++ b/app/pages/PageEnigma/comps/PreviewEngineCamera/index.tsx
@@ -16,6 +16,10 @@ export const PreviewEngineCamera = () => {
setTimeout(() => setShowLoader(false), 1000);
}, []);
+ if (editorState.value === EditorStates.PREVIEW) {
+ return null;
+ }
+
const handleButtonCameraView = () => {
Queue.publish({
queueName: QueueNames.TO_ENGINE,
@@ -33,16 +37,14 @@ export const PreviewEngineCamera = () => {
Camera View
- {editorState.value !== EditorStates.PREVIEW && (
-
- )}
+
diff --git a/app/pages/PageEnigma/comps/SidePanelTabs/itemTabs/StylizeTab/StyleSelection.tsx b/app/pages/PageEnigma/comps/SidePanelTabs/itemTabs/StylizeTab/StyleSelection.tsx
index 3badaf6aa1..70e7dfc647 100644
--- a/app/pages/PageEnigma/comps/SidePanelTabs/itemTabs/StylizeTab/StyleSelection.tsx
+++ b/app/pages/PageEnigma/comps/SidePanelTabs/itemTabs/StylizeTab/StyleSelection.tsx
@@ -20,11 +20,13 @@ export const StyleSelection = () => {
90 + (sidePanelWidth.value - 32 - shownImageCount * 98) / shownImageCount;
const imageHeight = (54 * imageWidth) / 90;
- const imageRows = Math.max(
- Math.floor((sidePanelHeight.value - 520) / imageHeight),
- 2,
+ const imageRows = Math.min(
+ Math.max(Math.floor((sidePanelHeight.value - 520) / imageHeight), 2),
+ 4,
);
+ const maxWidth = Math.ceil(styleList.length / imageRows);
+
const editorEngine = useContext(EngineContext);
const handlePickingStylizer = (picked: ArtStyle) => {
@@ -91,7 +93,7 @@ export const StyleSelection = () => {
)}
- {scrollPosition < styleList.length / 2 - shownImageCount && (
+ {scrollPosition < maxWidth - shownImageCount && (
{
setScrollPosition(
Math.min(
scrollPosition + Math.max(shownImageCount - 1, 1),
- styleList.length - 3,
+ maxWidth - shownImageCount,
),
)
}