Make library hide/show instant on the grid and skip disk checks on browse.

The details pane keeps the real file so inspection is not delayed.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-30 18:37:29 -05:00
co-authored by Cursor
parent e89b47b5f9
commit 845a037949
5 changed files with 122 additions and 52 deletions
+4 -1
View File
@@ -29,6 +29,9 @@ export default defineEventHandler(async (event) => {
family: family || hasLocks
})
}
if (hasHide) setClipHidden(owner, id, body.hideThumbnail === true)
if (hasHide) setClipHidden(owner, id, body.hideThumbnail === true, family)
if (hasHide && !folderId && !hasName && !hasLocks && !hasRefs) {
return { id, hideThumbnail: body.hideThumbnail === true }
}
return publicLibrary(event)
})
+1 -1
View File
@@ -1,6 +1,6 @@
export default defineEventHandler((event) => {
const library = publicLibrary(event)
const light = String(getQuery(event).light || '') === '1'
const library = publicLibrary(event, { light })
if (!light) {
try {
const { owner } = assertLibraryOwner(event)
+4 -1
View File
@@ -20,6 +20,9 @@ export default defineEventHandler(async (event) => {
if (family) await renameStillFamily(owner, id, body.name || '')
else await renameStill(owner, id, body.name || '')
}
if (hasHide) setStillHidden(owner, id, body.hideInput === true)
if (hasHide) setStillHidden(owner, id, body.hideInput === true, family)
if (hasHide && !folderId && !hasName) {
return { id, hideInput: body.hideInput === true }
}
return publicLibrary(event)
})