update
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user