components icon indicating copy to clipboard operation
components copied to clipboard

Can't change the size of toolbar

Open PeterQT opened this issue 10 years ago • 4 comments

Change size of toolbar Currently, md-toolbar only has the size of 64px. It's too height and I want to change it to a smaller height such as 50px. I want to add my-tool-size class to md-toolbar like this:

.my-small-size {
     min-height: 50px;
     height: 50px;
}
<md-toolbar color="primary" size="my-small-size">
</md-toolbar>

PeterQT avatar Apr 16 '16 07:04 PeterQT

If your markup is provided correctly, you should use `class="my-small-size"

<md-toolbar color="primary" class="my-small-size">
</md-toolbar>

devversion avatar Apr 16 '16 11:04 devversion

Just double-checked to confirm that adding a css class works; in general, we want people to style components just like any other DOM element.

jelbourn avatar Apr 16 '16 20:04 jelbourn

That will resize the toolbar, but not the contained toolbar-row, which stays at 64px. How do I resize toolbar-row height?

dfarago avatar Oct 11 '16 16:10 dfarago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.