{doc.description}
- >} + // About tab. + const aboutTab = <> + {doc && doc.description && <> +{doc.description}
+ >} - {doc && doc.publisher && <> -{doc.publisher}
- >} + {doc && doc.publisher && <> +{doc.publisher}
+ >} - {doc && doc.language && <> -{doc.language}
- >} + {doc && doc.language && <> +{doc.language}
+ >} - {doc && doc.subject && <> -{doc.subject}
- >} + {doc && doc.subject && <> +{doc.subject}
+ >} - {doc && doc.page_count && <> -{doc.page_count}
- >} + {doc && doc.page_count && <> +{doc.page_count}
+ >} -{humanFileSize(size)}
-{humanFileSize(size)}
+ >; - // Files pane. + // Files tab. const tableStyle = {width: '100%', borderCollapse: 'separate', borderSpacing: '0 0.7em'}; const labelStyle = {whiteSpace: 'nowrap', paddingRight: '1.5em', verticalAlign: 'top'}; - const filesPane = { - menuItem: 'Files', render: () =>| - {file.path.split('.').pop().toUpperCase()} - | -
- |
-
| Directory | -
| + {file.path.split('.').pop().toUpperCase()} + | +
+ |
+
| Directory | +
No results
; + body =No results
; } } @@ -253,69 +229,52 @@ const ZimAccordion = ({data, index, activeIndex, onClick, searchStr, activeTags} const label = ; - returnYou may need to give permission to access the page: {src}
@@ -553,7 +498,7 @@ function ZimViewer({src = ZIM_VIEWER_URI, style = null}) {Check the logs
journalctl -u wrolpi-kiwix-