Skip to content

Help: Specific layout with Grid/Flex that does not pop out under its max height #2480

Discussion options

You must be logged in to vote

I think I got this working:

In this bit remove the flex-1

const LegendButton = ({ no }: { no: number }) => {
  return (
    <div className="**flex-1** border-2 w-16 border-blue-300 text-xs">
      Button {no}
    </div>
  );
};

And here:

return (
    <div className="flex-1 p-4 border-4 border-orange-300 h-full">
      <p>{title}</p>
      <div className="flex flex-col flex-wrap **h-full**">{children}</div>
    </div>
  );

Add h-full

... and that should do the trick.

Cheers,
Martin.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@bennettdams
Comment options

@MartinHughes-BPC
Comment options

@bennettdams
Comment options

@MartinHughes-BPC
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by bennettdams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants