From 806d17842f1a6b77ff932b4c6a1f9b507deb290a Mon Sep 17 00:00:00 2001 From: Daan Meijer Date: Wed, 24 Jun 2026 09:59:39 +0200 Subject: [PATCH] show the chat again --- ...6_06_24_074207_translate_chatable_type.php | 34 +++++++++++++++++++ resources/css/components/chat.css | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2026_06_24_074207_translate_chatable_type.php 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 {