diff --git a/src/components/adjustments/Color.tsx b/src/components/adjustments/Color.tsx index e3998c40b..0c9dd8b59 100644 --- a/src/components/adjustments/Color.tsx +++ b/src/components/adjustments/Color.tsx @@ -158,7 +158,7 @@ const ColorGradingPanel = ({ adjustments, setAdjustments, onDragStateChange }: C return (
-
+
{tabs.map((tab) => { const isActive = activeTab === tab.id; return ( @@ -193,7 +193,7 @@ const ColorGradingPanel = ({ adjustments, setAdjustments, onDragStateChange }: C
-
+
{activeTab === '3way' ? ( +
Color Calibration @@ -449,7 +449,7 @@ export default function ColorPanel({ return (
-
+
White Balance {!isForMask && toggleWbPicker && ( @@ -491,7 +491,7 @@ export default function ColorPanel({ />
-
+
Presence @@ -515,7 +515,7 @@ export default function ColorPanel({ />
-
+
Color Grading @@ -527,7 +527,7 @@ export default function ColorPanel({ />
-
+
Color Mixer diff --git a/src/components/adjustments/Details.tsx b/src/components/adjustments/Details.tsx index 62b199992..7691ed7c1 100644 --- a/src/components/adjustments/Details.tsx +++ b/src/components/adjustments/Details.tsx @@ -27,9 +27,9 @@ export default function DetailsPanel({ const adjustmentVisibility = appSettings?.adjustmentVisibility || {}; return ( -
+
{adjustmentVisibility.sharpening !== false && ( -
+
Sharpening @@ -57,7 +57,7 @@ export default function DetailsPanel({ )} {adjustmentVisibility.presence !== false && ( -
+
Presence diff --git a/src/components/adjustments/Effects.tsx b/src/components/adjustments/Effects.tsx index e680a8fda..3b8433389 100644 --- a/src/components/adjustments/Effects.tsx +++ b/src/components/adjustments/Effects.tsx @@ -46,7 +46,7 @@ export default function EffectsPanel({ return (
-
+
Creative @@ -85,8 +85,8 @@ export default function EffectsPanel({
{!isForMask && ( -
-
+
+
LUT @@ -101,7 +101,7 @@ export default function EffectsPanel({
{adjustmentVisibility.vignette !== false && ( -
+
Vignette @@ -149,7 +149,7 @@ export default function EffectsPanel({ )} {adjustmentVisibility.grain !== false && ( -
+
Grain diff --git a/src/components/panel/right/ControlsPanel.tsx b/src/components/panel/right/ControlsPanel.tsx index 55d022108..572696810 100644 --- a/src/components/panel/right/ControlsPanel.tsx +++ b/src/components/panel/right/ControlsPanel.tsx @@ -308,7 +308,7 @@ export default function Controls({ handleAutoAdjustments, handleLutSelect, setAd )} -
+
{Object.keys(ADJUSTMENT_SECTIONS).map((sectionName: string) => { const SectionComponent: any = { basic: BasicAdjustments, diff --git a/src/components/ui/CollapsibleSection.tsx b/src/components/ui/CollapsibleSection.tsx index 3d59b969f..32a8e6caa 100644 --- a/src/components/ui/CollapsibleSection.tsx +++ b/src/components/ui/CollapsibleSection.tsx @@ -1,4 +1,4 @@ -import { useRef, useEffect, useState } from 'react'; +import { useRef, useState } from 'react'; import { ChevronDown, Eye, EyeOff } from 'lucide-react'; import clsx from 'clsx'; import Text from './Text'; @@ -25,35 +25,9 @@ export default function CollapsibleSection({ onToggleVisibility = () => {}, title, }: CollapsibleSectionProps) { - const contentRef = useRef(null); - const wrapperRef = useRef(null); const [isHovering, setIsHovering] = useState(false); const hoverTimeoutRef = useRef(null); - useEffect(() => { - const wrapper = wrapperRef.current; - const content = contentRef.current; - if (!wrapper || !content) { - return; - } - - const updateMaxHeight = () => { - if (isOpen) { - const contentHeight = content.scrollHeight; - wrapper.style.maxHeight = `${contentHeight}px`; - } else { - wrapper.style.maxHeight = '0px'; - } - }; - - updateMaxHeight(); - - const resizeObserver = new ResizeObserver(updateMaxHeight); - resizeObserver.observe(content); - - return () => resizeObserver.disconnect(); - }, [isOpen]); - const handleMouseEnter = () => { if (!canToggleVisibility) { return; @@ -77,9 +51,9 @@ export default function CollapsibleSection({ }; return ( -
+
-
-
- {children} +
+
+
+ {children} +