Skip to content

Commit

Permalink
Merge pull request #16 from lara-zeus/tooltip
Browse files Browse the repository at this point in the history
fix tooltip theme
  • Loading branch information
atmonshi authored Mar 2, 2024
2 parents 94d8626 + 38aba46 commit 6c5cb3a
Show file tree
Hide file tree
Showing 13 changed files with 3,336 additions and 2,740 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/larastan": "^2.0.1",
"larastan/larastan": "^2.0",
"phpstan/extension-installer": "^1.1",
"nunomaduro/collision": "^7.0",
"nunomaduro/phpinsights": "^2.8",
Expand All @@ -61,5 +61,6 @@
]
}
},
"minimum-stability": "dev"
"minimum-stability": "dev",
"prefer-stable": true
}
3,098 changes: 1,809 additions & 1,289 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/dist/css/another-portfolio.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/dist/css/breeze.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/dist/css/daisy.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/dist/js/another-portfolio.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/dist/js/another-portfolio.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*!
* PhotoSwipe 5.3.9 - https://photoswipe.com
* PhotoSwipe 5.4.3 - https://photoswipe.com
* (c) 2023 Dmytro Semenov
*/

/*!
* PhotoSwipe Lightbox 5.3.9 - https://photoswipe.com
* PhotoSwipe Lightbox 5.4.3 - https://photoswipe.com
* (c) 2023 Dmytro Semenov
*/
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@
<div>
<span>{{ __('status') }}</span>
@php $getStatues = $response->statusDetails() @endphp
<span class="{{ $getStatues['class']}}" x-tooltip.raw="{{ __('status') }}">
<span class="{{ $getStatues['class']}}"
x-tooltip="{
content: @js(__('status')),
theme: $store.theme,
}"
>
@svg($getStatues['icon'],'w-4 h-4 inline')
{{ $getStatues['label'] }}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,30 @@
<div x-data class="flex items-center justify-between text-primary-500 dark:text-primary-400 hover:dark:text-primary-300">
<h3>{{ $library->title ?? '' }}</h3>
@if($library->type === 'IMAGE')
<span x-tooltip.raw="{{ __('Image') }}">
<span
x-tooltip="{
content: @js(__('Image')),
theme: $store.theme,
}">
@svg('heroicon-o-photo','w-4 h-4 text-gray-400 dark:text-gray-500')
</span>
@endif

@if($library->type === 'FILE')
<span x-tooltip.raw="{{ __('File') }}">
<span x-tooltip="{
content: @js(__('File')),
theme: $store.theme,
}">
@svg('heroicon-o-document','w-4 h-4 text-gray-400 dark:text-gray-500')
</span>
@endif

@if($library->type === 'VIDEO')
<span x-tooltip.raw="{{ __('Video') }}">
<span
x-tooltip="{
content: @js(__('Video')),
theme: $store.theme,
}">
@svg('heroicon-o-film','w-4 h-4 text-gray-400 dark:text-gray-500')
</span>
@endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,29 @@
<div x-data class="flex items-center justify-between text-primary-500 dark:text-primary-400 hover:dark:text-primary-300">
<h3>{{ $library->title ?? '' }}</h3>
@if($library->type === 'IMAGE')
<span x-tooltip.raw="{{ __('Image') }}">
<span
x-tooltip="{
content: @js(__('Image')),
theme: $store.theme,
}">
@svg('heroicon-o-photo','w-4 h-4 text-gray-400 dark:text-gray-500')
</span>
@endif

@if($library->type === 'FILE')
<span x-tooltip.raw="{{ __('FILE') }}">
<span x-tooltip="{
content: @js(__('FILE')),
theme: $store.theme,
}">
@svg('heroicon-o-document','w-4 h-4 text-gray-400 dark:text-gray-500')
</span>
@endif

@if($library->type === 'VIDEO')
<span x-tooltip.raw="{{ __('VIDEO') }}">
<span x-tooltip="{
content: @js(__('VIDEO')),
theme: $store.theme,
}">
@svg('heroicon-o-film','w-4 h-4 text-gray-400 dark:text-gray-500')
</span>
@endif
Expand Down
7 changes: 6 additions & 1 deletion resources/views/themes/breeze/bolt/show-entry.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@
<div>
<span>{{ __('status') }}</span>
@php $getStatues = $response->statusDetails() @endphp
<span class="{{ $getStatues['class']}}" x-tooltip.raw="{{ __('status') }}">
<span class="{{ $getStatues['class']}}"
x-tooltip="{
content: @js(__('status')),
theme: $store.theme,
}"
>
@svg($getStatues['icon'],'w-4 h-4 inline')
{{ $getStatues['label'] }}
</span>
Expand Down
Loading

0 comments on commit 6c5cb3a

Please sign in to comment.