Skip to content

Commit 396d7bc

Browse files
committed
Refactor component and incident badges
1 parent 89b9ea3 commit 396d7bc

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed
Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
<div {{ $attributes->style([
2-
Illuminate\Support\Arr::toCssStyles([
3-
\Filament\Support\get_color_css_variables(
4-
$color,
5-
shades: [400, 900],
6-
),
7-
]),
8-
]) }}>
9-
<div {{ $attributes->class([
10-
'flex items-center gap-1 rounded-full px-2 py-1 text-xs font-semibold leading-tight shadow bg-custom-400 text-custom-900',
11-
]) }}>
12-
@svg($icon, 'h-5 w-5')
13-
14-
<span>{{ $label }}</span>
15-
</div>
16-
</div>
1+
<x-cachet::badge :color="$color" :label="$label" :icon="$icon" />
Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
<div {{ $attributes->style([
2-
Illuminate\Support\Arr::toCssStyles([
3-
\Filament\Support\get_color_css_variables(
4-
$color,
5-
shades: [400, 900],
6-
),
7-
]),
8-
]) }}>
9-
<div {{ $attributes->class([
10-
'flex items-center gap-1 rounded-full px-2 py-1 text-xs font-semibold leading-tight shadow bg-custom-400 text-custom-900',
11-
]) }}>
12-
@svg($icon, 'h-5 w-5')
13-
14-
<span>{{ $label }}</span>
15-
</div>
16-
</div>
1+
<x-cachet::badge :color="$color" :label="$label" :icon="$icon" />

resources/views/components/incident.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'rounded-lg' => $incident->incidentUpdates->isEmpty(),
1414
])>
1515
<div class="text-xs font-medium">{{ $incident->components->pluck('name')->join(', ') }}</div>
16-
<div class="flex flex-col sm:flex-row justify-between gap-2 flex-col-reverse">
16+
<div class="flex flex-col sm:flex-row justify-between gap-2 flex-col-reverse items-center">
1717
<div class="flex flex-col flex-1">
1818
<h3 class="max-w-full text-base font-semibold break-words sm:text-xl">
1919
<a href="{{ route('cachet.status-page.incident', $incident) }}">{{ $incident->name}}</a>

0 commit comments

Comments
 (0)