This commit is contained in:
2025-06-26 23:40:04 +00:00
parent 0ecef402a1
commit effa5a8096
3 changed files with 12 additions and 12 deletions

View File

@@ -230,19 +230,19 @@ export function Reader({ topic }) {
const selectedResource = topic.resources[resourceIdx];
if (resourceIdx === -1) {
return <div className="text-sm font-medium p-4">No data</div>;
}
return (
<>
<div className="flex-1">
<PDFViewer
file={topic.resources[resourceIdx]}
compact={config.narrowMode}
justifyText={config.justifyText}
zoomFactor={config.contentZoomFactor}
/>
{resourceIdx === -1 ? (
<div className="text-sm font-medium p-4">No data</div>
) : (
<PDFViewer
file={topic.resources[resourceIdx]}
compact={config.narrowMode}
justifyText={config.justifyText}
zoomFactor={config.contentZoomFactor}
/>
)}
<div className="absolute bottom-10 flex justify-between px-4 py-2 w-full z-999">
<div className="flex w-full space-x-2">
<Link to="/" className="cursor-pointer p-2 rounded-full bg-blue-600 text-white mr-auto">