diff --git a/components/Posting/Posting.php b/components/Posting/Posting.php index cd96df7f4d..ac8a54a830 100644 --- a/components/Posting/Posting.php +++ b/components/Posting/Posting.php @@ -25,6 +25,7 @@ use App\Core\Cache; use App\Core\DB\DB; use App\Core\Event; use App\Core\Form; +use App\Core\GSFile; use function App\Core\I18n\_m; use App\Core\Modules\Component; use App\Entity\Actor; @@ -159,7 +160,7 @@ class Posting extends Component if ($processed_attachments != []) { foreach ($processed_attachments as [$a, $fname]) { - if (DB::count('actor_to_attachment', $args = ['attachment_id' => $a->getId(), 'actor_id' => $args['actor_id']]) === 0) { + if (DB::count('actor_to_attachment', $args = ['attachment_id' => $a->getId(), 'actor_id' => $actor->getId()]) === 0) { DB::persist(ActorToAttachment::create($args)); } DB::persist(AttachmentToNote::create(['attachment_id' => $a->getId(), 'note_id' => $note->getId(), 'title' => $fname])); diff --git a/public/assets/css/base.css b/public/assets/css/base.css index 19136865d7..6ef601a3de 100644 --- a/public/assets/css/base.css +++ b/public/assets/css/base.css @@ -568,10 +568,10 @@ label, button { select, button, textarea, -input:not([type=checkbox], [type=radio]) { +input { font-size: inherit !important; color: var(--white); - padding: 4px 8px; + padding: 2px 8px; border: 2px solid var(--bg2); border-radius: var(--unit-size); background-color: var(--translucent); @@ -579,7 +579,8 @@ input:not([type=checkbox], [type=radio]) { button { background: var(--bg-button); - padding: 4px 8px; + padding: 2px 8px; + margin-left: auto; } select { @@ -601,6 +602,13 @@ input[type=radio] { } input[type=checkbox] { + all: unset; + + display: inline-block; + width: var(--medium-size); + height: var(--medium-size); + vertical-align: middle; + background-color: var(--bg2) !important; background-size: cover; margin-right: 2px; diff --git a/templates/sidepanel/right/right.html.twig b/templates/sidepanel/right/right.html.twig index b79ee32b39..af559a7caf 100644 --- a/templates/sidepanel/right/right.html.twig +++ b/templates/sidepanel/right/right.html.twig @@ -6,35 +6,39 @@