Skip to content

Commit f820315

Browse files
authored
feat(BootstrapLabel): add form-label-tooltip when enable ShowLabelTooltip (#5615)
* refactor: 表单内 Label 提示框增加样式 form-label-tooltip * style: 增加自适应样式 * chore: bump version 9.4.9-beta05
1 parent 0bab5a6 commit f820315

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.4.9-beta04</Version>
4+
<Version>9.4.9-beta05</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Label/BootstrapLabel.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@if (_showTooltip)
55
{
6-
<Tooltip Title="@Value">
6+
<Tooltip Title="@Value" class="form-label-tooltip">
77
@RenderLabel
88
</Tooltip>
99
}

src/BootstrapBlazor/Components/Row/Row.razor.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@
4747
&.form-inline-center > div > .form-label {
4848
text-align: center;
4949
}
50+
51+
.form-label-tooltip + * {
52+
flex: 1;
53+
}
5054
}
5155
}

0 commit comments

Comments
 (0)