Skip to content

Commit a12a567

Browse files
committed
next: Fixed issues with card component
1 parent 9ec1b3a commit a12a567

File tree

10 files changed

+36
-25
lines changed

10 files changed

+36
-25
lines changed

src/Exceptionless.Web/ClientApp/src/lib/features/events/components/cards/pie-chart-card.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
</script>
1010

1111
<Card.Root>
12-
<Card.Title class="p-6 pb-0 text-2xl" level={2}>{title}</Card.Title>
12+
<Card.Header>
13+
<Card.Title class="text-2xl" level={2}>{title}</Card.Title>
14+
</Card.Header>
1315
<Card.Content>
1416
<div class="w-[200px] border">
1517
<svg viewBox="0 0 20 20">

src/Exceptionless.Web/ClientApp/src/lib/features/events/persistent-event.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TODO: Remove this reference.
12
import type { ViewProject } from '$features/projects/models';
23

34
import { buildUrl } from '$shared/url';

src/Exceptionless.Web/ClientApp/src/routes/(app)/+page.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@
170170

171171
<div class="flex flex-col space-y-4">
172172
<Card.Root>
173-
<Card.Title class="gap-x-1 p-6 pb-0 text-2xl" level={2}
174-
>Events
175-
<AutomaticRefreshIndicatorButton {canRefresh} refresh={loadData} /></Card.Title
173+
<Card.Header>
174+
<Card.Title class="text-2xl" level={2}
175+
>Events
176+
<AutomaticRefreshIndicatorButton {canRefresh} refresh={loadData} /></Card.Title
177+
></Card.Header
176178
>
177179
<Card.Content class="pt-4">
178180
<EventsDataTable bind:limit={params.limit!} isLoading={clientStatus.isLoading} rowClick={rowclick} {table}>

src/Exceptionless.Web/ClientApp/src/routes/(app)/account/+layout.svelte

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
});
2020
</script>
2121

22-
<Card.Root>
23-
<Card.Title class="p-6 pb-0 text-2xl" level={2}>Settings</Card.Title>
24-
<Card.Description class="pl-6">Manage your account settings and set e-mail preferences.</Card.Description>
25-
22+
<Card.Root
23+
><Card.Header>
24+
<Card.Title class="text-2xl" level={2}>Settings</Card.Title>
25+
<Card.Description>Manage your account settings and set e-mail preferences.</Card.Description>
26+
</Card.Header>
2627
<Separator class="mx-6 my-6 w-auto" />
2728

2829
<Card.Content>

src/Exceptionless.Web/ClientApp/src/routes/(app)/event/[id]/+page.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
</script>
4040

4141
<div class="flex flex-col space-y-4">
42-
<Card.Root>
43-
<Card.Title class="p-6 pb-0 text-2xl" level={2}>Event Details</Card.Title>
42+
<Card.Root
43+
><Card.Header>
44+
<Card.Title class="text-2xl" level={2}>Event Details</Card.Title></Card.Header
45+
>
4446
<Card.Content class="pt-4">
4547
<EventsOverview {filterChanged} id={page.params.id || ''} {handleError}></EventsOverview>
4648
</Card.Content>

src/Exceptionless.Web/ClientApp/src/routes/(app)/issues/+page.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@
183183
</script>
184184

185185
<div class="flex flex-col space-y-4">
186-
<Card.Root>
187-
<Card.Title class="p-6 pb-0 text-2xl" level={2}>Issues <AutomaticRefreshIndicatorButton {canRefresh} refresh={loadData} /></Card.Title>
188-
<Card.Content class="pt-4">
186+
<Card.Root
187+
><Card.Header>
188+
<Card.Title class="text-2xl" level={2}>Issues <AutomaticRefreshIndicatorButton {canRefresh} refresh={loadData} /></Card.Title>
189+
</Card.Header><Card.Content class="pt-4">
189190
<EventsDataTable bind:limit={params.limit!} isLoading={clientStatus.isLoading} rowClick={rowclick} {table}>
190191
{#snippet toolbarChildren()}
191192
<FacetedFilter.Root changed={onFilterChanged} {filters} remove={onFilterRemoved}>

src/Exceptionless.Web/ClientApp/src/routes/(app)/routes.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import BookOpen from 'lucide-svelte/icons/book-open';
2-
import Braces from 'lucide-svelte/icons/braces';
3-
import Stacks from 'lucide-svelte/icons/bug';
1+
import Documentation from 'lucide-svelte/icons/book-open';
2+
import ApiDocumentations from 'lucide-svelte/icons/braces';
3+
import Issues from 'lucide-svelte/icons/bug';
44
import EventStream from 'lucide-svelte/icons/calendar-arrow-down';
55
import Events from 'lucide-svelte/icons/calendar-days';
6-
import Help from 'lucide-svelte/icons/circle-help';
6+
import Support from 'lucide-svelte/icons/circle-help';
77
import GitHub from 'lucide-svelte/icons/github';
88

99
import type { NavigationItem } from '../routes';
@@ -20,7 +20,7 @@ export const routes: NavigationItem[] = [
2020
{
2121
group: 'Dashboards',
2222
href: '/next/issues',
23-
icon: Stacks,
23+
icon: Issues,
2424
title: 'Issues'
2525
},
2626
{
@@ -39,14 +39,14 @@ export const routes: NavigationItem[] = [
3939
{
4040
group: 'Help',
4141
href: 'https://exceptionless.com/docs/',
42-
icon: BookOpen,
42+
icon: Documentation,
4343
openInNewTab: true,
4444
title: 'Documentation'
4545
},
4646
{
4747
group: 'Help',
4848
href: 'https://github.com/exceptionless/Exceptionless/issues',
49-
icon: Help,
49+
icon: Support,
5050
openInNewTab: true,
5151
title: 'Support'
5252
},
@@ -60,7 +60,7 @@ export const routes: NavigationItem[] = [
6060
{
6161
group: 'Help',
6262
href: '/docs/index.html',
63-
icon: Braces,
63+
icon: ApiDocumentations,
6464
openInNewTab: true,
6565
title: 'API'
6666
},

src/Exceptionless.Web/ClientApp/src/routes/(app)/stream/+page.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@
182182
});
183183
</script>
184184

185-
<Card.Root>
186-
<Card.Title class="p-6 pb-0 text-2xl" level={2}>Event Stream</Card.Title>
185+
<Card.Root
186+
><Card.Header>
187+
<Card.Title class="text-2xl" level={2}>Event Stream</Card.Title>
188+
</Card.Header>
187189
<Card.Content>
188190
<DataTable.Root>
189191
<DataTable.Toolbar {table}>

src/Exceptionless.Web/ClientApp/src/routes/(auth)/logout/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<Card.Root class="mx-auto max-w-sm">
4040
<Card.Header>
4141
<Logo />
42-
<Card.Title class="text-center text-2xl">Log out?</Card.Title>
42+
<Card.Title class="text-center text-2xl" level={2}>Log out?</Card.Title>
4343
</Card.Header>
4444
<Card.Content>
4545
<form onsubmit={onLogout}>

src/Exceptionless.Web/ClientApp/src/routes/status/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Card.Root class="mx-auto max-w-sm">
2222
<Card.Header>
2323
<Logo />
24-
<Card.Title class="text-center text-2xl">Service Status</Card.Title>
24+
<Card.Title class="text-center text-2xl" level={2}>Service Status</Card.Title>
2525
</Card.Header>
2626
<Card.Content>
2727
<P class="text-center text-sm">

0 commit comments

Comments
 (0)