Skip to content

Add nested object has full-height and full-width button #4684

@RoelWKramer

Description

@RoelWKramer

Prerequisites

What theme are you using?

react-bootstrap

Version

6.0.0-beta11

Current Behavior

With 6.0.0-beta11 an d react-bootstrap i have a problem with remove button (and add button) sizes.

I created a schema which contains nested objects. The delete buttons are huge, they seem to fill 100% of the space they are in. I played around in the developer toolbar in safari. when i remove d-grid in one of the parent divs the button is smaller, but it is still mis-aligned.

Mis alignment is another issue, as you can see in the screenshots. But I found another bug report for that (although that was on version 5).

Image

I also tried it with an array of nested objects, that seems to be alright, except for the add button. That one is full width as well.

Image

I played around with some css, the ArrayTemplate and such. I am not a frontend developer however, the more I fiddle with it, the worse it gets. So I removed all my customizations.

I have no extra stylesheets loaded whatsoever.

With the default theme it seems to be better.

Image

Expected Behavior

I expect the button to be not full size, but something more reasonable.

Steps To Reproduce

I want to create a link to the playground with my examples, but there is not an easy way to share that.

Just load these examples:

Object with nested object example
deployment.json
deployment.schema.json

Array with objects example
user.json
user.schema.json

This is my package.json
package.json

Environment

- OS: MacOS Sequoia
- Node:v23.6.1
- npm: 10.9.2
- Browser: Safari 18.5 / Chrome 138.0.7204.93

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions