New Switchable Library Layout

This commit is contained in:
Stefan Hardegger
2025-08-14 19:46:50 +02:00
parent 1d14d3d7aa
commit 460ec358ca
14 changed files with 1384 additions and 806 deletions

View File

@@ -22,13 +22,13 @@ const importTabs: ImportTab[] = [
{
id: 'manual',
label: 'Manual Entry',
href: '/import',
href: '/add-story',
description: 'Add a story by manually entering details'
},
{
id: 'url',
label: 'Import from URL',
href: '/import?mode=url',
href: '/import',
description: 'Import a single story from a website'
},
{
@@ -52,8 +52,10 @@ export default function ImportLayout({ children, title, description }: ImportLay
// Determine which tab is active
const getActiveTab = () => {
if (pathname === '/import') {
return mode === 'url' ? 'url' : 'manual';
if (pathname === '/add-story') {
return 'manual';
} else if (pathname === '/import') {
return 'url';
} else if (pathname === '/import/epub') {
return 'epub';
} else if (pathname === '/import/bulk') {