diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
index 33a2c83b9..75149a0d4 100644
--- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
@@ -65,7 +65,7 @@ class Show extends Component
protected $rules = [
'key' => 'required|string',
'value' => 'nullable',
- 'comment' => 'nullable|string|max:1000',
+ 'comment' => 'nullable|string|max:256',
'is_multiline' => 'required|boolean',
'is_literal' => 'required|boolean',
'is_shown_once' => 'required|boolean',
@@ -107,7 +107,7 @@ public function syncData(bool $toModel = false)
$this->validate([
'key' => 'required|string',
'value' => 'nullable',
- 'comment' => 'nullable|string|max:1000',
+ 'comment' => 'nullable|string|max:256',
'is_multiline' => 'required|boolean',
'is_literal' => 'required|boolean',
'is_shown_once' => 'required|boolean',
diff --git a/database/migrations/2025_11_17_145255_add_comment_to_environment_variables_table.php b/database/migrations/2025_11_17_145255_add_comment_to_environment_variables_table.php
index 0e17e720f..abbae3573 100644
--- a/database/migrations/2025_11_17_145255_add_comment_to_environment_variables_table.php
+++ b/database/migrations/2025_11_17_145255_add_comment_to_environment_variables_table.php
@@ -12,11 +12,11 @@
public function up(): void
{
Schema::table('environment_variables', function (Blueprint $table) {
- $table->text('comment')->nullable();
+ $table->string('comment', 256)->nullable();
});
Schema::table('shared_environment_variables', function (Blueprint $table) {
- $table->text('comment')->nullable();
+ $table->string('comment', 256)->nullable();
});
}
diff --git a/resources/views/livewire/project/shared/environment-variable/show.blade.php b/resources/views/livewire/project/shared/environment-variable/show.blade.php
index 259f90828..80b607bd7 100644
--- a/resources/views/livewire/project/shared/environment-variable/show.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php
@@ -121,6 +121,7 @@