mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: frontend unlimited — raise all client-side caps and timeouts
- XHR timeouts: doubled across all tool categories (120s/300s/600s) - Pipeline timeout: 180s → 600s - Favicon/PDF/barcode timeouts raised to 300s - Files page: fetch 200 per page - Split grid: 20 → 100 max columns/rows - Image viewer zoom: 25-300% → 10-1000% - Collage zoom: 3x → 10x, pan: ±100 → ±200 - Passport photo: face adjust ±15% → ±30%, zoom 3x → 5x
This commit is contained in:
@@ -1062,8 +1062,8 @@ export function PassportPhotoPreview() {
|
||||
if (!dragStartRef.current) return;
|
||||
const dx = (e.clientX - dragStartRef.current.x) * 0.001;
|
||||
const dy = (e.clientY - dragStartRef.current.y) * 0.001;
|
||||
setAdjustX(Math.max(-0.15, Math.min(0.15, dragStartRef.current.ax - dx)));
|
||||
setAdjustY(Math.max(-0.15, Math.min(0.15, dragStartRef.current.ay - dy)));
|
||||
setAdjustX(Math.max(-0.3, Math.min(0.3, dragStartRef.current.ax - dx)));
|
||||
setAdjustY(Math.max(-0.3, Math.min(0.3, dragStartRef.current.ay - dy)));
|
||||
}
|
||||
|
||||
function handleMouseUp() {
|
||||
@@ -1083,7 +1083,7 @@ export function PassportPhotoPreview() {
|
||||
const handleWheel = useCallback(
|
||||
(e: React.WheelEvent<HTMLCanvasElement>) => {
|
||||
e.preventDefault();
|
||||
setZoom(Math.max(0.5, Math.min(3, zoom + (e.deltaY > 0 ? -0.1 : 0.1))));
|
||||
setZoom(Math.max(0.5, Math.min(5, zoom + (e.deltaY > 0 ? -0.1 : 0.1))));
|
||||
},
|
||||
[zoom, setZoom],
|
||||
);
|
||||
@@ -1138,7 +1138,7 @@ export function PassportPhotoPreview() {
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setZoom(Math.min(3, zoom + 0.25))}
|
||||
onClick={() => setZoom(Math.min(5, zoom + 0.25))}
|
||||
className="p-1.5 rounded-lg border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"
|
||||
title="Zoom in"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user