From 1800c20742f648371be6629687427b841ab36bf9 Mon Sep 17 00:00:00 2001 From: Lukas Schaab Date: Mon, 27 Jan 2025 14:38:52 +0100 Subject: [PATCH] fixed styling issues in avatar editor --- .../Core/Presentation/AvatarEditor/AvatarEditor.tsx | 2 +- .../AvatarEditorPreviewCameraController.ts | 5 +++++ .../React/GeneralComponents/ColorPicker/ColorPickerModal.tsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Components/Core/Presentation/AvatarEditor/AvatarEditor.tsx b/src/Components/Core/Presentation/AvatarEditor/AvatarEditor.tsx index c050f661c..a5eff3559 100644 --- a/src/Components/Core/Presentation/AvatarEditor/AvatarEditor.tsx +++ b/src/Components/Core/Presentation/AvatarEditor/AvatarEditor.tsx @@ -49,7 +49,7 @@ export default function AvatarEditor() { />
{/* Categories (Left Side) */} -
+
{/* Category Tabs */} {/* Category Header */}
diff --git a/src/Components/Core/Presentation/AvatarEditor/AvatarEditorPreview/AvatarEditorPreviewCamera/AvatarEditorPreviewCameraController.ts b/src/Components/Core/Presentation/AvatarEditor/AvatarEditorPreview/AvatarEditorPreviewCamera/AvatarEditorPreviewCameraController.ts index 658a08092..766c0828f 100644 --- a/src/Components/Core/Presentation/AvatarEditor/AvatarEditorPreview/AvatarEditorPreviewCamera/AvatarEditorPreviewCameraController.ts +++ b/src/Components/Core/Presentation/AvatarEditor/AvatarEditorPreview/AvatarEditorPreviewCamera/AvatarEditorPreviewCameraController.ts @@ -15,6 +15,11 @@ export default class AvatarEditorPreviewCameraController // attach controls camera.inputs.attached.mousewheel.attachControl(); camera.inputs.attached.pointers.attachControl(); + + // Empfindlichkeit für Pinch/Zoom verringern + camera.pinchPrecision = 200; // höherer Wert = geringeres Zoom pro Geste + // oder: camera.pinchDeltaPercentage = 0.002; // anpassen nach Bedarf + const pointersInput = camera.inputs.attached .pointers as ArcRotateCameraPointersInput; pointersInput.multiTouchPanAndZoom = true; diff --git a/src/Components/Core/Presentation/React/GeneralComponents/ColorPicker/ColorPickerModal.tsx b/src/Components/Core/Presentation/React/GeneralComponents/ColorPicker/ColorPickerModal.tsx index 7a39f1c9d..ab54dd68c 100644 --- a/src/Components/Core/Presentation/React/GeneralComponents/ColorPicker/ColorPickerModal.tsx +++ b/src/Components/Core/Presentation/React/GeneralComponents/ColorPicker/ColorPickerModal.tsx @@ -23,7 +23,7 @@ export default function ColorPickerModal({ }: AdLerUIComponent) { if (!showModal) return null; return ( -
+

{title}