flowbite-svelte icon indicating copy to clipboard operation
flowbite-svelte copied to clipboard

Card - Fluid by default

Open wrabit opened this issue 2 years ago • 3 comments

Summary

It seems there always has to be a max-w applied. What if we are already wrapping the Card within a sized container like a grid cell?

Basic example

The default to be fluid (no max-width) and size unset

Motivation

This component becomes very hard to use in the way which it should be used, it shouldn't be forced to be a width-setting component.

wrabit avatar Feb 08 '23 11:02 wrabit

Can you show us a REPL or stackbli example?

shinokada avatar Feb 08 '23 21:02 shinokada

You can do <Card class="max-w-none"/> in the meantime.

Clemens-B avatar Feb 09 '23 12:02 Clemens-B

I was wondering why Card objects don't stretch to the browser screen such as if there was a setting limiting the max width. And finally, here, I got a solution. Thanks. (I'm not familiar in Frontend stuff though...)

KnightChaser avatar Jun 26 '24 02:06 KnightChaser

Please use the props for the styling: https://flowbite-svelte.com/docs/components/card#Card_styling

The design is from https://flowbite.com/docs/components/card/

shinokada avatar Jun 26 '24 08:06 shinokada