refactor: polish comment form layout - inline attach and comment button
Move Comment/Reply button to same row as Attach link using justify-between flex layout. Shorten "Attach files" to "Attach". Place Cancel on left side, action buttons on right for edit/reply forms. Cleaner, more compact footer area.
This commit is contained in:
@@ -217,7 +217,7 @@ it('hides upload UI when attachments disabled', function () {
|
||||
$this->actingAs($user);
|
||||
|
||||
Livewire::test(Comments::class, ['model' => $post])
|
||||
->assertDontSeeHtml('Attach files');
|
||||
->assertDontSeeHtml('wire:model="attachments"');
|
||||
});
|
||||
|
||||
it('shows upload UI when attachments enabled', function () {
|
||||
@@ -227,7 +227,7 @@ it('shows upload UI when attachments enabled', function () {
|
||||
$this->actingAs($user);
|
||||
|
||||
Livewire::test(Comments::class, ['model' => $post])
|
||||
->assertSeeHtml('Attach files');
|
||||
->assertSeeHtml('wire:model="attachments"');
|
||||
});
|
||||
|
||||
it('creates comment with multiple file attachments', function () {
|
||||
|
||||
Reference in New Issue
Block a user