Skip to content

Commit

Permalink
Merge pull request #1382 from moonshine-software/vertical-span
Browse files Browse the repository at this point in the history
Vertical span
  • Loading branch information
lee-to authored Dec 18, 2024
2 parents d01df58 + eb505d5 commit 3f3b509
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Pages/Crud/DetailPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ protected function getDetailComponent(?DataWrapperContract $item, Fields $fields
return TableBuilder::make($fields)
->cast($this->getResource()->getCaster())
->items([$item])
->vertical()
->vertical(
title: $this->getResource()->isDetailInModal() ? 3 : 2,
value: $this->getResource()->isDetailInModal() ? 9 : 10,
)
->simple()
->preview();
}
Expand Down

0 comments on commit 3f3b509

Please sign in to comment.