Skip to content

Commit 733d11a

Browse files
committed
Move the additional book margin to the MainContent component
1 parent f39ff2f commit 733d11a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/elements/Book.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const Book = ({match: {params: {bookId}}}: BookProps) => {
5757
thenRender={(definedBookIndexPage) => {
5858
return <>
5959
<BookSidebar book={definedBookIndexPage} urlBookId={bookId} pageId={pageId} />
60-
<MainContent className="mt-4">
60+
<MainContent className="my-4">
6161
{pageId
6262
? <ShowLoadingQuery
6363
query={bookDetailPageQuery}
@@ -68,7 +68,7 @@ export const Book = ({match: {params: {bookId}}}: BookProps) => {
6868
<EditContentButton doc={definedBookIndexPage}/>
6969
<TeacherNotes notes={definedBookIndexPage.teacherNotes} />
7070
{definedBookIndexPage.value && <div>
71-
<div className="book-image-container book-height-lg d-none d-sm-block mx-3 mb-4 float-end">
71+
<div className="book-image-container book-height-lg d-none d-sm-block mx-3 float-end">
7272
<img src={definedBookIndexPage.coverImage?.src} alt={definedBookIndexPage.title} />
7373
</div>
7474
<Markup className="d-contents" trusted-markup-encoding={"markdown"}>{definedBookIndexPage.value}</Markup>
@@ -78,7 +78,7 @@ export const Book = ({match: {params: {bookId}}}: BookProps) => {
7878
<div className="flex-grow-1">
7979
<IsaacContentValueOrChildren {...definedBookIndexPage.children[0] as ContentDTO} />
8080
</div>
81-
<div className="book-image-container book-height-lg d-none d-sm-block mx-3 mb-4 float-end">
81+
<div className="book-image-container book-height-lg d-none d-sm-block mx-3 float-end">
8282
<img src={definedBookIndexPage.coverImage?.src} alt={definedBookIndexPage.title} />
8383
</div>
8484
</div>

0 commit comments

Comments
 (0)