Skip to content

fix bottom collapse button#128

Merged
ElderJames merged 1 commit into
ant-design-blazor:masterfrom
zandiarash:Layout-Fix
Nov 21, 2025
Merged

fix bottom collapse button#128
ElderJames merged 1 commit into
ant-design-blazor:masterfrom
zandiarash:Layout-Fix

Conversation

@zandiarash

Copy link
Copy Markdown
Contributor

After creating new template with this commands

dotnet new --install AntDesign.Templates
dotnet new antdesign -o MyAntDesignApp

If you run website and collapse it you see the icon messy and the 24x margin make part of the icon hidden.
1

The reason is here in ant-design-blazor repository in components\menu\MenuItem.razor.cs
These lines
private int Padding => RootMenu?.InternalMode == MenuMode.Inline ? ((ParentMenu?.Level ?? 0) + 1) * RootMenu?.InlineIndent ?? 0 : 0;

Thus in blazor-pro-components repository if we change the Menu mode to Vertical it works as expected

2

@ElderJames ElderJames left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@ElderJames
ElderJames merged commit 4053abc into ant-design-blazor:master Nov 21, 2025
2 checks passed
@zandiarash
zandiarash deleted the Layout-Fix branch November 22, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants