improve: Immich cloud filter and optimize
This commit is contained in:
@@ -146,6 +146,11 @@ export function ColGrip({ col, min = 110, max = 560 }: { col: string; min?: numb
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const key = `studio-col-${col}`;
|
||||
useEffect(() => {
|
||||
if (window.innerWidth <= 860 || localStorage.getItem('rc_force_view') === 'mobile') {
|
||||
const box = ref.current?.parentElement;
|
||||
if (box && box.style.width) box.style.width = '';
|
||||
return;
|
||||
}
|
||||
const box = ref.current?.parentElement;
|
||||
const kept = recall(key);
|
||||
if (box && kept) box.style.width = kept;
|
||||
|
||||
Reference in New Issue
Block a user