Skip to content

Commit 22972e5

Browse files
authored
doc(Pre): update max-height style (#7723)
1 parent baaf96d commit 22972e5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/BootstrapBlazor.Server/Components/Components/DemoBlock.razor.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.card {
1+
.card {
22
transition: box-shadow .3s linear;
33
}
44

@@ -48,6 +48,10 @@
4848
width: calc(100% - 1rem);
4949
}
5050

51+
.card-footer-code ::deep pre {
52+
max-height: 260px;
53+
}
54+
5155
.card-footer-control {
5256
text-align: center;
5357
color: #d3dce6;

src/BootstrapBlazor.Server/Components/Components/Pre.razor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ public partial class Pre
7575

7676
private string? StyleString => CssBuilder.Default()
7777
.AddClass($"height: {Height};", !string.IsNullOrEmpty(Height))
78-
.AddClass("max-height: 260px;", string.IsNullOrEmpty(Height))
7978
.AddClassFromAttributes(AdditionalAttributes)
8079
.Build();
8180

src/BootstrapBlazor.Server/Components/Layout/ComponentLayout.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.bb-title {
1+
.bb-title {
22
font-size: 1.2rem;
33
display: flex;
44
justify-content: center;

0 commit comments

Comments
 (0)