move projects from sidebar to topbar (#170)

and fix #169
This commit is contained in:
Saeed Vaziry
2024-04-23 21:34:39 +02:00
committed by GitHub
parent f0da1c6d8c
commit 25977d2ead
14 changed files with 31 additions and 25 deletions

View File

@ -1,15 +1,15 @@
<div data-tooltip="Project" class="cursor-pointer">
<x-dropdown width="full">
<div class="cursor-pointer">
<x-dropdown align="left">
<x-slot:trigger>
<div>
<div data-tooltip="Project">
<div
class="block w-full rounded-md border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500"
class="flex h-10 w-max items-center rounded-md border border-gray-200 bg-gray-100 px-4 py-2 pr-7 text-sm text-gray-900 focus:ring-4 focus:ring-gray-300 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-300 dark:focus:ring-gray-600"
>
{{ auth()->user()->currentProject?->name ?? __("Select Project") }}
<button type="button" class="absolute inset-y-0 right-0 flex items-center pr-2">
<x-heroicon name="o-chevron-down" class="h-4 w-4 text-gray-400" />
</button>
</div>
<button type="button" class="absolute inset-y-0 right-0 flex items-center pr-2">
<x-heroicon name="o-chevron-down" class="h-4 w-4 text-gray-400" />
</button>
</div>
</x-slot>
<x-slot:content>