Skip to content

Commit f39ff2f

Browse files
committed
Add spacing below the book cover image
This is important when the intro text is very short to prevent the cover image from touching the footer.
1 parent 9522a6c commit f39ff2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/elements/Book.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 float-end">
71+
<div className="book-image-container book-height-lg d-none d-sm-block mx-3 mb-4 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 float-end">
81+
<div className="book-image-container book-height-lg d-none d-sm-block mx-3 mb-4 float-end">
8282
<img src={definedBookIndexPage.coverImage?.src} alt={definedBookIndexPage.title} />
8383
</div>
8484
</div>

0 commit comments

Comments
 (0)