Skip to content

Commit

Permalink
feat: preview for books
Browse files Browse the repository at this point in the history
  • Loading branch information
sayinmehmet47 committed Nov 26, 2023
1 parent df8690f commit 309a963
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client/src/components/BookPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const BookPreview = ({

if (fileType === 'pdf') {
return (
<div className="mt-5 ">
<div className="mt-3 ">
<DocViewer
documents={docs}
initialActiveDocument={docs[1]}
Expand All @@ -43,10 +43,10 @@ export const BookPreview = ({
);
} else if (fileType === 'epub') {
return (
<div style={{ height: '90vh', marginTop: '20px' }}>
<div style={{ height: '100vh' }}>
<ArrowLeftIcon
size={32}
className="cursor-pointer border border-gray-400 rounded-full hover:bg-gray-200 hover:shadow-md relative left-2 top-2 my-4"
className="cursor-pointer border border-gray-400 rounded-full hover:bg-gray-200 hover:shadow-md relative left-2 mb-2"
onClick={() => navigate(-1)}
/>
<ReactReader
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ToastContainer } from 'react-toastify';
import styled from 'styled-components';
import { loadUserThunk } from '../redux/authSlice';
import NavbarComponent from './Navbar';
import { CustomFlowbiteTheme, Flowbite } from 'flowbite-react';
import { Flowbite } from 'flowbite-react';
import { customTheme } from './ui/theme';

const Wrapper = styled.div`
Expand Down

1 comment on commit 309a963

@vercel
Copy link

@vercel vercel bot commented on 309a963 Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.