minor fixes

This commit is contained in:
Doar Mihai
2026-06-01 16:47:18 +03:00
parent 2a724c0ae2
commit ea3e376507
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ class IgdbService
if (empty($w['url'])) continue; if (empty($w['url'])) continue;
GameWebsite::create([ GameWebsite::create([
'game_id' => $game->id, 'game_id' => $game->id,
'category' => $w['category'], 'category' => $w['category'] ?? null,
'url' => $w['url'], 'url' => $w['url'],
]); ]);
} }
@@ -7,7 +7,7 @@ return new class extends Migration {
Schema::create('game_websites', function (Blueprint $table) { Schema::create('game_websites', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('game_id')->constrained()->cascadeOnDelete(); $table->foreignId('game_id')->constrained()->cascadeOnDelete();
$table->unsignedTinyInteger('category'); $table->unsignedTinyInteger('category')->nullable(true);
$table->string('url'); $table->string('url');
$table->timestamps(); $table->timestamps();
}); });
@@ -4,8 +4,8 @@
class="group block bg-[#16161d] rounded-lg overflow-hidden hover:ring-1 hover:ring-purple-500 transition-all duration-200"> class="group block bg-[#16161d] rounded-lg overflow-hidden hover:ring-1 hover:ring-purple-500 transition-all duration-200">
<!-- Cover --> <!-- Cover -->
<div class="aspect-[3/4] bg-[#0f0f13] overflow-hidden"> <div class="aspect-[3/4] bg-[#0f0f13] overflow-hidden">
@if($game->cover_thumb_url) @if($game->cover_url)
<img src="{{ $game->cover_thumb_url }}" <img src="{{ $game->cover_url }}"
alt="{{ $game->title }}" alt="{{ $game->title }}"
class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"> class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300">
@else @else