Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customise height of card on Laravel Nova dashboard?

Tags:

laravel-nova

There is a ->width() option for cards. How can the height be defined?

like image 510
ohho Avatar asked Oct 23 '18 04:10

ohho


Video Answer


1 Answers

Although Nova does not provide a ->height() method, when you generate a Nova card it creates resources/js/components/Card.vue automatically (see Nova card documentation)

The Card.vue file allows you to modify the Vue template for the card element. Since Nova uses the Tailwind CSS framework, you should be able to use the Height classes of Tailwind CSS inside Card.vue.

like image 193
Dan Bowling Avatar answered Oct 10 '22 13:10

Dan Bowling