Skip to content

Commit

Permalink
Fix sidebar missing background on publish form
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Sep 19, 2023
1 parent 2188bf2 commit b600ca5
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions resources/js/components/Publish/PublishForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,25 @@
@blur="$refs.container.$emit('blur', $event)"
>
<template #actions="{ shouldShowSidebar }">
<div
v-if="resourceHasRoutes && permalink"
:class="{ hi: !shouldShowSidebar }"
>
<div class="p-2 flex items-center -mx-1">
<a
class="flex items-center justify-center btn-flat w-full mx-1 px-1"
v-if="permalink"
:href="permalink"
target="_blank"
>
<svg-icon
name="external-link"
class="w-5 h-5 mr-1"
/>
<span>{{ __('Visit URL') }}</span>
</a>
<div class="card p-0" :class="{ 'mb-5': resourceHasRoutes && permalink }">
<div
v-if="resourceHasRoutes && permalink"
:class="{ hi: !shouldShowSidebar }"
>
<div class="p-2 flex items-center -mx-1">
<a
class="flex items-center justify-center btn-flat w-full mx-1 px-1"
v-if="permalink"
:href="permalink"
target="_blank"
>
<svg-icon
name="external-link"
class="w-5 h-5 mr-1"
/>
<span>{{ __('Visit URL') }}</span>
</a>
</div>
</div>
</div>
</template>
Expand Down

0 comments on commit b600ca5

Please sign in to comment.