File tree Expand file tree Collapse file tree
resources/views/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 $url = $baseUrl . ' /' . $type . ' /' . $item -> media_usable_id ;
2121
2222 return "
23- <div class=\" flex items-center gap-2 py-2 px-3 hover:bg-gray-100 rounded-md transition-colors\" >
23+ <div class=\" flex items-center gap-2 py-2 px-3 dark:bg-gray-800 dark:hover:bg-gray-700/50 hover:bg-gray-100 rounded-md transition-colors\" >
2424 <svg class=\" w-4 h-4 text-gray-400\" xmlns=\" http://www.w3.org/2000/svg\" fill=\" none\" viewBox=\" 0 0 24 24\" stroke-width=\" 1.5\" stroke=\" currentColor\" >
2525 <path stroke-linecap=\" round\" stroke-linejoin=\" round\" d=\" M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244\" />
2626 </svg>
27- <a href=\" {$url }\" target=\" _blank\" class=\" text-primary-600 hover:text-primary-700 hover:underline break-all text-sm\" >
27+ <a href=\" {$url }\" target=\" _blank\" class=\" text-primary-600 dark:text-primary-400 hover:text-primary-700 dark:hover:text-primary-500 hover:underline break-all text-sm\" >
2828 {$url }
2929 </a>
3030 </div>
3131 " ;
3232 })-> join (" \n " );
3333
3434 return "
35- <div class=\" mb-6\" >
36- <div class=\" flex items-center gap-2 mb-3\" >
37- <h3 class=\" text-lg font-medium text-gray-900\" >{$typeName }</h3>
38- <span class=\" px-2 py-0.5 text-xs font-medium bg-gray-100 text-gray-600 rounded-full\" >
39- {$items -> count ()} " . trans_choice (' media::fields.link|links' , $items -> count ()) . "
40- </span>
41- </div>
42- <div class=\" bg-white border border-gray-200 rounded-lg divide-y divide-gray-100\" >
35+ <div class=\" mb-6\" >
36+ <div class=\" flex items-center gap-2 mb-3\" >
37+ <h3 class=\" text-lg font-medium text-gray-900\" >{$typeName }</h3>
38+ <span class=\" px-2 py-0.5 text-xs font-medium bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-400 rounded-full\" >
39+ {$items -> count ()} " . trans_choice (' media::fields.link|links' , $items -> count ()) . "
40+ </span>
41+ </div>
42+ <div class=\" bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg divide-y divide-gray-100 dark:divide-gray-700 \" >
4343 {$links }
4444 </div>
45- </div>
46- " ;
45+ </div>
46+ " ;
4747 })-> join (" \n " );
4848@endphp
4949
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ public static function form(Form $form): Form
315315 <button
316316 type= \"button \"
317317 x-on:click= \"\$dispatch('open-modal', { id: 'usage-modal- {$ record ->id }' }) \"
318- class= \"filament-button filament-button-size-sm inline-flex items-center justify-center py-1 gap-1 font-medium rounded-lg border transition-colors outline-none focus:ring-offset-2 focus:ring-2 focus:ring-inset min-h-[2rem] px-3 text-primary-600 bg-primary-50 border-primary-200 hover:bg-primary-100 focus:ring-primary-600 focus:text-primary-600 focus:bg-primary-50 focus:border-primary-600 \"
318+ class= \"filament-button filament-button-size-sm inline-flex items-center justify-center py-1 gap-1 font-medium rounded-lg border transition-colors outline-none focus:ring-offset-2 focus:ring-2 focus:ring-inset min-h-[2rem] px-3 text-primary-600 dark:text-primary-400 bg-primary-50 dark:bg-primary-500/10 border-primary-200 dark:border-primary-500/20 hover:bg-primary-100 dark:hover:bg-primary-500/20 focus:ring-primary-600 dark: focus:ring-primary-400 focus: text-primary-600 dark: focus:text-primary-400 focus: bg-primary-50 dark: focus:bg-primary-500/10 focus: border-primary-600 dark:focus:border-primary-400 \"
319319 >
320320 <span class= \"flex items-center gap-1 \">
321321 <svg class= \"w-4 h-4 \" xmlns= \"http://www.w3.org/2000/svg \" fill= \"none \" viewBox= \"0 0 24 24 \" stroke-width= \"1.5 \" stroke= \"currentColor \">
You can’t perform that action at this time.
0 commit comments