update
This commit is contained in:
parent
0ecef402a1
commit
effa5a8096
File diff suppressed because one or more lines are too long
2
reader/dist/index.html
vendored
2
reader/dist/index.html
vendored
@ -7,7 +7,7 @@
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<title>Конспект</title>
|
||||
<script type="module" crossorigin src="/assets/index-BM-0-Di-.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-CZd2EwCp.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-D8a8nrqF.css">
|
||||
</head>
|
||||
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user