fix comment block padding

This commit is contained in:
ghost 2023-08-29 13:51:17 +03:00
parent a6c4f70580
commit c200507844
2 changed files with 9 additions and 1 deletions

View File

@ -142,11 +142,19 @@
padding: 8px;
}
.padding-b-8 {
padding-bottom: 8px;
}
.padding-y-8 {
padding-top: 8px;
padding-bottom: 8px;
}
.padding-t-16 {
padding-top: 16px;
}
.padding-x-16 {
padding-left: 16px;
padding-right: 16px;

View File

@ -366,7 +366,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
</div>
<div class="padding-x-16">
<?php foreach ($db->getMagnetComments($response->magnet->magnetId) as $magnetComment) { ?>
<div class="padding-16 margin-t-8 border-radius-3 background-color-night <?php echo !$magnetComment->approved || !$magnetComment->public ? 'opacity-06 opacity-hover-1' : false ?>">
<div class="padding-x-16 padding-t-16 padding-b-8 margin-t-8 border-radius-3 background-color-night <?php echo !$magnetComment->approved || !$magnetComment->public ? 'opacity-06 opacity-hover-1' : false ?>">
<a name="comment-<?php echo $magnetComment->magnetCommentId ?>"></a>
<?php if ($response->user->address == $db->getUser($magnetComment->userId)->address || in_array($response->user->address, MODERATOR_IP_LIST)) { ?>
<div class="margin-b-16">