Fix public view for book

This commit is contained in:
mirivlad 2025-11-27 15:04:25 +08:00
parent 37676a3ccb
commit 3edfa05f46
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ include 'views/layouts/header.php';
?>
<div class="container py-4">
<div class="row justify-content-center">
<div class="row">
<div class="col-lg-10">
<article class="card border-0 shadow-sm">
<div class="card-body p-4">
@ -34,7 +34,7 @@ include 'views/layouts/header.php';
<?php endif; ?>
<?php if (!empty($book['description'])): ?>
<div class="bg-light p-4 rounded mb-4">
<div class="text-start bg-light p-4 rounded mb-4 ">
<?= nl2br(e($book['description'])) ?>
</div>
<?php endif; ?>
@ -97,7 +97,7 @@ include 'views/layouts/header.php';
<a href="#chapter-<?= $chapter['id'] ?>" class="list-group-item list-group-item-action border-0">
<div class="d-flex justify-content-between align-items-center">
<span>
<strong>Глава <?= $index + 1 ?>:</strong> <?= e($chapter['title']) ?>
<strong><?= e($chapter['title']) ?></strong>
</span>
<small class="text-muted"><?= $chapter['word_count'] ?> слов</small>
</div>