Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.card {
.card {
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file now starts without the UTF-8 BOM marker, while most .razor.css files in this project appear to keep the BOM. If the change is unintentional, consider restoring the BOM to keep encoding consistent and reduce churn in diffs.

Copilot uses AI. Check for mistakes.
transition: box-shadow .3s linear;
}

Expand Down Expand Up @@ -48,6 +48,10 @@
width: calc(100% - 1rem);
}

.card-footer-code ::deep pre {
max-height: 260px;
}

.card-footer-control {
text-align: center;
color: #d3dce6;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public partial class Pre

private string? StyleString => CssBuilder.Default()
.AddClass($"height: {Height};", !string.IsNullOrEmpty(Height))
.AddClass("max-height: 260px;", string.IsNullOrEmpty(Height))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Removing the default max-height may affect Pre usage outside DemoBlock contexts.

Pre used to enforce max-height: 260px whenever Height was unset, in all contexts. Now that constraint only exists via .card-footer-code ::deep pre in DemoBlock.razor.css, so any other Pre usages without an explicit Height can now expand indefinitely. If that global behavior change isn’t desired, consider retaining a default max-height in Pre and overriding it specifically in DemoBlock instead.

.AddClassFromAttributes(AdditionalAttributes)
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StyleString is used for the <pre> element’s style attribute, but it currently calls AddClassFromAttributes(AdditionalAttributes), which pulls the class attribute (not style) and appends it into the style string. This also means any user-provided style in AdditionalAttributes is ignored for the <pre>. Use AddStyleFromAttributes(AdditionalAttributes) here (consistent with other components like Scroll/Affix).

Suggested change
.AddClassFromAttributes(AdditionalAttributes)
.AddStyleFromAttributes(AdditionalAttributes)

Copilot uses AI. Check for mistakes.
.Build();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.bb-title {
.bb-title {
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file now starts without the UTF-8 BOM marker, while most .razor.css files in this project appear to keep the BOM (e.g., many other component/layout scoped CSS files). If the change is unintentional, consider restoring the BOM to avoid inconsistent encoding/noisy diffs across the repo.

Copilot uses AI. Check for mistakes.
font-size: 1.2rem;
display: flex;
justify-content: center;
Expand Down