mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-05 21:48:03 +00:00
- Adds pagination support for search. - Use composition API on all search related component. - Minor UI improvements. - Adds missing specs Loom video https://www.loom.com/share/5b01afa5c9204e7d97ff81b215621dde?sid=82ca6d22-ca8c-4d5e-8740-ba06ca4051ba
39 lines
803 B
Vue
39 lines
803 B
Vue
<script setup>
|
|
import NextButton from 'dashboard/components-next/button/Button.vue';
|
|
|
|
defineProps({
|
|
shrink: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
});
|
|
|
|
defineEmits(['expand']);
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<div
|
|
:class="{
|
|
'max-h-[100px] overflow-hidden relative': shrink,
|
|
}"
|
|
>
|
|
<slot />
|
|
<div
|
|
v-if="shrink"
|
|
class="absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t to-transparent from-n-background flex items-end justify-center pb-2"
|
|
>
|
|
<NextButton
|
|
:label="$t('SEARCH.READ_MORE')"
|
|
icon="i-lucide-chevrons-down"
|
|
blue
|
|
xs
|
|
faded
|
|
class="backdrop-filter backdrop-blur-[2px]"
|
|
@click.prevent="$emit('expand')"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|