dkulyk / nova-tabs

Another Laravel Nova Tabs Package
58 stars 7 forks source link

The Create resource button stick on top of the Tabs bar. #22

Closed ricardov03 closed 3 years ago

ricardov03 commented 4 years ago

The Create button of any resource I use with the tabs, stick on top of the bar. I inspect the button and confirm that this class "mb-6" it's the issue.

I don't know if this class it's used on purpose, or If I can change this to remove it.

Here it's a view of the problem: sample

And this is how I'm using the nova-tabs:

...
            (new Tabs(__('Structure Relations'), [
                HasOne::make('Segmentation', 'segmentation', 'App\Nova\CondominiumSegmentation'),
                HasMany::make('Building Types')
                    ->hideFromDetail(function(){
                        if($this->segmentation()->count())
                            return false;
                        else
                            return true;
                    }),
                HasMany::make(__('Building ↔︎ Segment Relation'), 'building_segments_relation', 'App\Nova\BuildingSegmentation')
                    ->hideFromDetail(function(){
                        if($this->segmentation()->count() && $this->building_types()->count())
                            return false;
                        else
                            return true;
                    }),
            ])),
...