Skip to content

Commit

Permalink
fix(galleries): finesse log comment form, column sizes
Browse files Browse the repository at this point in the history
- don't apply card styling to staff-staff comment form when WYSIWYG comments are enabled
  • Loading branch information
itinerare committed Jun 11, 2024
1 parent 3790045 commit 4b865d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resources/views/comments/_form.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="card mt-3">
<div class="card-body">
<div class="{{ isset($compact) && !$compact ? 'card' : '' }} mt-3">
<div class="{{ isset($compact) && !$compact ? 'card-body' : '' }}">
{!! Form::open(['url' => 'comments/make/' . base64_encode(urlencode(get_class($model))) . '/' . $model->getKey()]) !!}
<input type="hidden" name="type" value="{{ isset($type) ? $type : null }}" />
<div class="form-group">
Expand Down
4 changes: 3 additions & 1 deletion resources/views/comments/comments.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@
@endisset

@auth
@include('comments._form')
@include('comments._form', [
'compact' => $type == 'Staff-Staff' && config('lorekeeper.settings.wysiwyg_comments') ? true : false,
])
@else
<div class="card mt-3">
<div class="card-body">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/galleries/submission_log.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class="float-right badge badge-{{ $submission->status == 'Pending' ? 'secondary'
@include('galleries._queue_submission', ['key' => 0])

<div class="row">
<div class="col-md">
<div class="col col-md">
@if (Settings::get('gallery_submissions_reward_currency') && $submission->gallery->currency_enabled)
<div class="card mb-4">
<div class="card-header">
Expand Down Expand Up @@ -183,7 +183,7 @@ class="float-right badge badge-{{ $submission->status == 'Pending' ? 'secondary'
</div>
</div>
@if (Auth::user()->hasPower('manage_submissions') && $submission->collaboratorApproved)
<div class="col-md-5">
<div class="col-12 col-md-5">
<div class="card mb-4">
<div class="card-header">
<h5>[Admin] Vote Info</h5>
Expand Down

0 comments on commit 4b865d2

Please sign in to comment.