Skip to content

Commit a5bafb4

Browse files
committed
fix: content version styles
1 parent a324479 commit a5bafb4

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

resources/css/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/* Content History */
3434
.content-history .publish-time-badge {
35-
@apply bg-custom-50 dark:bg-custom-400/10 ring-1 ring-custom-600 ring-custom-600/10;
35+
@apply bg-color-50 dark:bg-color-400/10 ring-1 ring-color-600 ring-color-600/10;
3636
@apply rounded-md px-2 py-1;
3737
@apply text-xs font-medium;
3838
@apply flex items-center justify-center gap-1;

resources/dist/inspirecms.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/components/version-diff/item.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
->merge(['class' => 'version-diff-item'])
88
}}
99
>
10-
<div {{ (new ComponentAttributeBag)->gridColumn(['default' => 1])->class(['version-diff-item-title font-semibold']) }}>{{ $key }}</div>
11-
<div {{ (new ComponentAttributeBag)->gridColumn(['default' => 2, 'md' => 4]) }} >
10+
<div {{ (new ComponentAttributeBag)->gridColumn(['default' => 1, 'md' => 1])->class(['version-diff-item-title font-semibold']) }}>{{ $key }}</div>
11+
<div {{ (new ComponentAttributeBag)->gridColumn(['default' => 2, 'md' => 4])->class(['testttt']) }} >
1212
@if (is_array($value))
1313
<x-inspirecms::version-diff.items :items="$value"/>
1414
@else
1515
{!! $value !!}
1616
@endif
17-
</d>
17+
</div>
1818
</div>

src/Filament/Resources/Contents/Tables/ContentVersionsTable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public static function configure(Table $table): Table
3030
->searchPlaceholder(__('inspirecms::resources/content-version.tables.search_placeholder'))
3131
->emptyStateHeading(__('inspirecms::resources/content-version.empty_state.heading'))
3232
->emptyStateDescription(__('inspirecms::resources/content-version.empty_state.description'))
33+
->extraAttributes([
34+
'class' => 'content-history',
35+
])
3336
->columns([
3437
Split::make([
3538
Stack::make([
@@ -95,13 +98,14 @@ public static function configure(Table $table): Table
9598
})
9699
->color('primary')
97100
->icon('heroicon-o-clock')
101+
->iconColor('primary')
98102
->alignCenter()
103+
->verticalAlignment('center')
99104
->tooltip(fn ($state) => $state?->format('Y-m-d H:i:s') ?? __('inspirecms::messages.no_published_yet'))
100105
->extraAttributes(fn ($state) => [
101106
'class' => filled($state) ? 'publish-time-badge' : 'hidden',
102107
'style' => get_color_css_variables('primary', shades: [50, 400, 600]),
103108
]),
104-
105109
])
106110
->filters([
107111

0 commit comments

Comments
 (0)