You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, not sure if this is the right place to post this. I really like what you've done with this package. I especially like how you're able to create groups of filters so that you can control where the filters appear.
I'm trying to get regular metric cards to appear next to a high detached filter and I'm struggling because my metric cards keep wrapping instead of using up the available space. I was wondering if it would be possible to use a similar logic to force cards to appear in a certain way.
For example I have this:
(new NovaDetachedFilters([
new \Nova\Filters\User\ProfileColumnFilter(),
]))->width('1/3')->withReset(),
(new NovaDetachedFilters([
new \Nova\Filters\User\AccountStatus(),
]))->width('1/3')->withReset(),
new \Nova\Metrics\Email\QueuedEmails,
new \Nova\Metrics\Email\SentEmails,
new \Nova\Metrics\Email\SkippedEmails,
The problem is that the 3 cards don't properly line up in the right-most column, instead the first one does, and the other two go and wrap uglily under my tall filter in the first column.
Even though they would all fit there.
So I would love to do something like
(new NovaDetachedFilters([
new \Nova\Filters\User\ProfileColumnFilter(),
]))->width('1/3')->withReset(),
(new NovaDetachedFilters([
new \Nova\Filters\User\AccountStatus(),
]))->width('1/3')->withReset(),
(new NovaDetachedFilters([
new \Nova\Metrics\Email\QueuedEmails,
new \Nova\Metrics\Email\SentEmails,
new \Nova\Metrics\Email\SkippedEmails,
]))->width('1/3'),
But of course this doesn't work since my metric cards are not filters so they don't appear at all
Do you know if there's a way to make regular cards appear in a 'group' that is constrained to a width? Exactly like you've done with filters above?
This discussion was converted from issue #23 on June 17, 2022 12:23.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, not sure if this is the right place to post this. I really like what you've done with this package. I especially like how you're able to create groups of filters so that you can control where the filters appear.
I'm trying to get regular metric cards to appear next to a high detached filter and I'm struggling because my metric cards keep wrapping instead of using up the available space. I was wondering if it would be possible to use a similar logic to force cards to appear in a certain way.
For example I have this:
The problem is that the 3 cards don't properly line up in the right-most column, instead the first one does, and the other two go and wrap uglily under my tall filter in the first column.
Even though they would all fit there.
So I would love to do something like
But of course this doesn't work since my metric cards are not filters so they don't appear at all
Do you know if there's a way to make regular cards appear in a 'group' that is constrained to a width? Exactly like you've done with filters above?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions