-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from rainlanguage/2024-01-30-gui-breadcrumbs
feat(tauri/ui): replace back button with breadcrumbs
- Loading branch information
Showing
8 changed files
with
57 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script lang="ts"> | ||
import { Breadcrumb, BreadcrumbItem } from "flowbite-svelte"; | ||
export let title: string; | ||
</script> | ||
|
||
<div class="flex w-full items-center mb-8"> | ||
<div class="flex-1"> | ||
<Breadcrumb aria-label="Default breadcrumb example"> | ||
<BreadcrumbItem href="/" home></BreadcrumbItem> | ||
<slot name="breadcrumbs"></slot> | ||
<BreadcrumbItem spanClass="ms-1 text-sm font-medium text-gray-700 md:ms-2 dark:text-gray-300">{title}</BreadcrumbItem> | ||
</Breadcrumb> | ||
</div> | ||
<h1 class="flex-0 text-4xl font-bold text-gray-900 dark:text-white">{title}</h1> | ||
<div class="flex-1"> | ||
<div class="flex justify-end space-x-2"> | ||
<slot name="actions"></slot> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<script lang="ts"> | ||
import { Heading } from 'flowbite-svelte'; | ||
import PageHeader from '$lib/components/PageHeader.svelte'; | ||
</script> | ||
|
||
<Heading tag="h1" class="text-center text-4xl font-bold">Help</Heading> | ||
<PageHeader title="Help"> | ||
</PageHeader> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters