mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
Merge pull request #80 from ashim-hq/feat/unlimited-by-default
feat: Unlimited by Default — remove all artificial limits
This commit is contained in:
@@ -35,7 +35,7 @@ export const useFilesPageStore = create<FilesPageState>((set, get) => ({
|
||||
set({ loading: true, error: null });
|
||||
try {
|
||||
const { searchQuery } = get();
|
||||
const result = await apiListFiles({ search: searchQuery || undefined, limit: 100 });
|
||||
const result = await apiListFiles({ search: searchQuery || undefined, limit: 200 });
|
||||
set({ files: result.files, total: result.total, loading: false });
|
||||
} catch (err) {
|
||||
set({ error: err instanceof Error ? err.message : "Failed to load files", loading: false });
|
||||
|
||||
@@ -68,8 +68,8 @@ export const useSplitStore = create<SplitState>((set, get) => ({
|
||||
|
||||
setMode: (mode) => set({ mode, tiles: [], zipBlobUrl: null, error: null }),
|
||||
setColumns: (columns) =>
|
||||
set({ columns: Math.max(1, Math.min(20, columns)), tiles: [], zipBlobUrl: null }),
|
||||
setRows: (rows) => set({ rows: Math.max(1, Math.min(20, rows)), tiles: [], zipBlobUrl: null }),
|
||||
set({ columns: Math.max(1, Math.min(100, columns)), tiles: [], zipBlobUrl: null }),
|
||||
setRows: (rows) => set({ rows: Math.max(1, Math.min(100, rows)), tiles: [], zipBlobUrl: null }),
|
||||
setTileWidth: (tileWidth) =>
|
||||
set({ tileWidth: Math.max(10, tileWidth), tiles: [], zipBlobUrl: null }),
|
||||
setTileHeight: (tileHeight) =>
|
||||
|
||||
Reference in New Issue
Block a user