Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdList: how to make md-list-item item row height smaller #7277

@kasajian

Description

@kasajian

Currently, I have to

When I have simple markup like this:

<md-list ng-controller="ListCtrl" ng-cloak="" class="listdemoListControls" ng-app="MyApp">
  <md-list-item ng-repeat="message in messages">
      <md-checkbox class="green" ng-model="message.selected">
    </md-checkbox> 
       <p style="" >{{message.title}}</p> 
  </md-list-item>
</md-list>

There's unnecessary gaps. The only way I was able to figure out how to fix it (after about 4 hours of fighting with css, is by adding the following style:

<style>
md-list-item, md-list-item .md-list-item-inner, md-checkbox {
    min-height: 100%;
}
</style>

here's a pen: http://codepen.io/kasajian/pen/XdrrQY

Is there a more proper way to do this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions