Skip to content

Commit

Permalink
style: cursor
Browse files Browse the repository at this point in the history
fix: label on object type filter
  • Loading branch information
FrantisekMichalSebestyen committed Oct 4, 2023
1 parent e2204d9 commit 3b669ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/filter/search_options.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class="tw-w-full tw-border-none tw-px-4 tw-py-2 tw-text-sm tw-font-semibold tw-l
<div
class="md:tw-min-h-80 tw-flex tw-h-[calc(100vh-18rem)] tw-flex-col tw-overflow-auto tw-bg-white tw-scrollbar tw-scrollbar-track-gray-200 tw-scrollbar-thumb-gray-600 tw-scrollbar-track-rounded tw-scrollbar-thumb-rounded tw-scrollbar-w-1 md:tw-max-h-80 md:tw-px-0 md:tw-pr-3">
<label v-if="sc.options.length > 0" v-for="option in sc.options" v-bind:for="option.id"
v-bind:class="['tw-flex md:tw-px-2 tw-px-4 tw-my-0.5 tw-py-1 hover:tw-bg-gray-200', { 'tw-bg-gray-200': option.checked }]">
v-bind:class="['tw-flex md:tw-px-2 tw-px-4 tw-my-0.5 tw-py-1 hover:tw-bg-gray-200 tw-cursor-pointer', { 'tw-bg-gray-200': option.checked }]">
<input
class="tw-form-checkbox tw-m-0 tw-mr-3 tw-h-6 tw-w-6 tw-border-gray-300 focus:tw-outline-none focus:tw-ring-0 focus:tw-ring-offset-0"
type="checkbox" v-bind:key="option.id" v-bind:id="option.id"
Expand Down
19 changes: 10 additions & 9 deletions resources/views/frontend/catalog-new/index-new.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ class="tw-inset-x-0 tw-box-border tw-flex tw-min-h-0 tw-flex-1 tw-flex-col tw-ov
@slot('header')
<x-filter.view_header_button @click="dc.goTo('index')">
<filter-new-custom-select-popover-label
name="object_type" :selected-values="query['object_type']">
name="{{ trans('item.object_type') }}"
:selected-values="query['object_type']">
</filter-new-custom-select-popover-label>
</x-filter.view_header_button>
@endslot
Expand Down Expand Up @@ -877,42 +878,42 @@ class="tw-inline tw-h-4 tw-w-4 tw-fill-current">
class="tw-w-80 tw-border-2 tw-border-gray-800 tw-bg-white tw-p-4">

<ul>
<li class="tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
<li class="tw-cursor-pointer tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
@click="handleSortChange('created_at');pc.closeOpenedPopover()"
v-if="query.sort !== 'created_at'">
{{ trans('sortable.created_at') }}
</li>
<li class="tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
<li class="tw-cursor-pointer tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
@click="handleSortChange('title');pc.closeOpenedPopover()"
v-if="query.sort !== 'title'">
{{ trans('sortable.title') }}
</li>
<li class="tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
<li class="tw-cursor-pointer tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
@click="handleSortChange('author');pc.closeOpenedPopover()"
v-if="query.sort !== 'author'">
{{ trans('sortable.author') }}
</li>
<li class="tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
<li class="tw-cursor-pointer tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
@click="handleSortChange('date_earliest');pc.closeOpenedPopover()"
v-if="query.sort !== 'date_earliest'">
{{ trans('sortable.oldest') }}
</li>
<li class="tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
<li class="tw-cursor-pointer tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
@click="handleSortChange('date_latest');pc.closeOpenedPopover()"
v-if="query.sort !== 'date_latest'">
{{ trans('sortable.newest') }}
</li>
<li class="tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
<li class="tw-cursor-pointer tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
@click="handleSortChange('view_count');pc.closeOpenedPopover()"
v-if="query.sort !== 'view_count'">
{{ trans('sortable.view_count') }}
</li>
<li class="tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
<li class="tw-cursor-pointer tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
@click="handleSortChange('random');pc.closeOpenedPopover()"
v-if="query.sort !== 'random'">
{{ trans('sortable.random') }}
</li>
<li class="tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
<li class="tw-cursor-pointer tw-py-0.5 tw-pl-2 hover:tw-bg-gray-200"
@click="handleSortChange(null);pc.closeOpenedPopover()"
v-if="query.sort">
{{ trans('sortable.updated_at') }}
Expand Down

0 comments on commit 3b669ac

Please sign in to comment.