Browse Source

fix comment block padding

main
ghost 1 year ago
parent
commit
c200507844
  1. 8
      src/public/assets/theme/default/css/framework.css
  2. 2
      src/public/magnet.php

8
src/public/assets/theme/default/css/framework.css

@ -142,11 +142,19 @@ @@ -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;

2
src/public/magnet.php

@ -366,7 +366,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?> @@ -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">

Loading…
Cancel
Save