Prompt: simplify and fix dashboard layout. Sidebars are now a mess, weird gaps everywhere, make it simple and modern keeping general color scheme Stats: Context: 41,492 tokens Time: 6m 15s
28 lines
932 B
Vue
28 lines
932 B
Vue
<script setup lang="ts">
|
|
import Breadcrumbs from '@/components/Breadcrumbs.vue';
|
|
import { SidebarTrigger } from '@/components/ui/sidebar';
|
|
import type { BreadcrumbItem } from '@/types';
|
|
|
|
withDefaults(
|
|
defineProps<{
|
|
breadcrumbs?: BreadcrumbItem[];
|
|
}>(),
|
|
{
|
|
breadcrumbs: () => [],
|
|
},
|
|
);
|
|
</script>
|
|
|
|
<template>
|
|
<header
|
|
class="flex h-[60px] shrink-0 items-center gap-2 border-b border-[#e4eaee] px-4 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-[56px] dark:border-[#37474f]"
|
|
>
|
|
<div class="flex items-center gap-2 w-full">
|
|
<SidebarTrigger class="-ml-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200" />
|
|
<template v-if="breadcrumbs && breadcrumbs.length > 0">
|
|
<Breadcrumbs :breadcrumbs="breadcrumbs" />
|
|
</template>
|
|
</div>
|
|
</header>
|
|
</template>
|