diff --git a/database/migrations/2026_06_24_074207_translate_chatable_type.php b/database/migrations/2026_06_24_074207_translate_chatable_type.php new file mode 100644 index 0000000..3b9d6b0 --- /dev/null +++ b/database/migrations/2026_06_24_074207_translate_chatable_type.php @@ -0,0 +1,34 @@ +each(function (Chat $chat) { + $newType = match($chat->chatable_type) { + \App\Models\Mutation::class => 'mutation', + \App\Models\Ledger::class => 'ledger', + \App\Models\Dynamic::class => 'dynamic', + default => $chat->chatable_type, + }; + $chat->update(['chatable_type' => $newType]); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + // + } +}; diff --git a/resources/css/components/chat.css b/resources/css/components/chat.css index fe54479..79c06af 100644 --- a/resources/css/components/chat.css +++ b/resources/css/components/chat.css @@ -24,7 +24,7 @@ } .c-chat__message { - @apply overflow-hidden p-4 shadow-sm sm:rounded-lg; + @apply p-4 shadow-sm sm:rounded-lg; border: 1px solid var(--border); &.c-chat__message--system {