🎨 Palette: [UX improvement] Auto-focus Close button in Lightbox (#104)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
Ralksta
2026-04-21 22:51:31 +02:00
committed by GitHub
parent b803daf8f9
commit 16e1c7647b
3 changed files with 24 additions and 7 deletions

View File

@@ -41,9 +41,12 @@ export async function POST(request: NextRequest) {
}
if (!isProtected(slug, type)) {
return NextResponse.json({
error: `${type === 'subpage' ? 'Subpage' : 'Album'} is not password-protected`,
}, { status: 400 });
return NextResponse.json(
{
error: `${type === 'subpage' ? 'Subpage' : 'Album'} is not password-protected`,
},
{ status: 400 },
);
}
const setCookie = authenticate(slug, password, type);