dotnetcore / BootstrapBlazor

A set of enterprise-class UI components based on Bootstrap and Blazor
https://www.blazor.zone
Apache License 2.0
2.45k stars 294 forks source link

Question about setting Label Width for input components #2984

Closed Dimasikkk1 closed 8 months ago

Dimasikkk1 commented 8 months ago

I want to create a custom EditTemplate for the table. I saw that EditForm and the --bb-row-label-width style have such a property. Is it acceptable to put an EditForm in an EditTemplate, or is it better to set the --bb-row-label-width style for input components? When I put the EditForm in the EditTemplate, I get a <div class="form-body"> inside the same <div class="form-body">. It seems to me that I did it wrong.

I'm new to Blazor and Bootstrap 👉👈

bb-auto[bot] commented 8 months ago

@Dimasikkk1 Thank you for submitting. We will give feedback later.

ArgoZhang commented 8 months ago

@Dimasikkk1 put the following code app.css in your project.

:root {
    --bb-row-label-width: 200px;
}