MudBlazor/MudBlazor

MudCard: CardHeaderActions results in inconsistent header height

Open

#12,719 创建于 2026年2月24日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)C# (10,394 star) (1,631 fork)batch import
buggood first issue

描述

Before reporting

  • I searched existing issues
  • I tried in private/incognito browser

What went wrong?

Design issue

When having multiple MudCards side by side and some have an MudIconButton, they interfere the CardHeaderContent. As seen in the reproduction link and in the following image, the headers are at different positions. Also the heights of the cards are different. Blue line is for demonstration.

I would expect, the default behavior with default components and similar cards is having similar headers (h1, h2, no tag) on same y positions.

Reproduction link

https://try.mudblazor.com/snippet/QuwUumGIEvIWOKAS

Reproduction steps

  1. Create a grid with MudCards
  2. Add headers, some of them with Actions
  3. See the result

Version (bug)

9.0.0

Version (working)

(unsure)

Environment

Chrome, Firefox

Blazor rendering mode

Server, WASM

Edit: I don't expect different header styles to have the same base line. So the image might be a bit misleading. Only the two on the left and the two on the right should have the same line.

贡献者指南