diff --git a/resources/css/core/animation.css b/resources/css/core/animation.css index 9ca703aeb9..c1bf20d940 100644 --- a/resources/css/core/animation.css +++ b/resources/css/core/animation.css @@ -81,6 +81,10 @@ transition: opacity calc(var(--starting-style-transition-duration) / 2); } + .starting-style-transition--slow { + transition: opacity calc(var(--starting-style-transition-duration) * 3); + } + .starting-style-transition--delay { transition-delay: calc(var(--starting-style-transition-duration) * 5); } diff --git a/resources/js/components/blueprints/Tab.vue b/resources/js/components/blueprints/Tab.vue index 302a87e57a..6a5713d783 100644 --- a/resources/js/components/blueprints/Tab.vue +++ b/resources/js/components/blueprints/Tab.vue @@ -11,12 +11,7 @@ @@ -73,10 +68,10 @@ diff --git a/resources/js/components/ui/Listing/Presets.vue b/resources/js/components/ui/Listing/Presets.vue index b373a6d1a6..2a97470b58 100644 --- a/resources/js/components/ui/Listing/Presets.vue +++ b/resources/js/components/ui/Listing/Presets.vue @@ -7,6 +7,8 @@ import { DropdownItem, DropdownMenu, DropdownSeparator, + Tabs, + TabList, } from '@ui'; import { injectListingContext } from '../Listing/Listing.vue'; import { computed, ref, watch } from 'vue'; @@ -85,6 +87,17 @@ function getPresetFromActiveFilters() { } } +const currentTab = computed({ + get: () => activePreset.value || 'all', + set: (value) => { + if (value === 'all') { + viewAll(); + } else { + selectPreset(value); + } + }, +}); + const presetPreferencesPayload = computed(() => { let payload = { display: savingPresetName.value || activePresetPayload.value.display || '', @@ -159,52 +172,53 @@ function deletePreset() {