-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Responsive List Item Display Issue #8707
Comments
Can you please explain your issue with more details. I'm currently not sure, what you try to archive. Probably share some code, which is not working? |
The idea is to create a list like in the list demo: Checkbox with Secondary Action. I need a group of 7 or 8 actions icons as secondray and when reducing screen the group of those 7-8 icon should stack under checkbox + text. (Actually disappear if you reduce width on the demo) The main text is a very long text (as url string) that shouldn't break. Thanx. |
@peio72 This is a quite uncommon behavior and is not specified by the Material Design Specifications. We will not officially support this functionality and this is is actually a question for the ngMaterial Forum Group. I've added a Codepen with some modified CSS which has the functionality, you expected. Also you may have noticed, that the Icons are not like a button anymore... this is intentional, because it's regular not marked as a secondary item, so you may have to wrap the icons inside of a button yourself. I'm open for discussion, so please let me know :) |
Sure, thanx a lot. It looks like what i'm trying to achieve.
It's a behavior I need for displaying a list of documents with several actions possible on it (7-8: info, rename, move, ..., etc) Thanx. |
The modifications are using Flexbox, which means if you group the elements inside of an element, those will be used as a group.. This is an updated Codepen. |
Thanx a lot for your update but not working with Google Chrome (icons won't stack but overlap). |
It works fine for me. |
Same behaviour on IE11, icons overlap text not stacking. Works fine in Firefox. |
@peio72 I'm trying my best to help you with custom CSS. It will be probably easier after #8482. The Material Design Specifications are not mentioning anything about Multi Line Secondary Items, so you will have to stick to custom CSS.
Actually, everything works fine for me (Chrome 51). Please continue asking in the Forums and probably show the Codepen, so users won't start from scratch. |
Ok I will try to find other solution in the forum. |
@peio72 I just checked with IE, and updated the Codepen. |
Yes thanx a lot. I will try to update my code based on yours. Really helpful. Thanx. |
I would like to design the following responsive list items display:
Desktop display: (width 100%)
Checkbox-Icon-Text Icon-Icon-Icon-Icon-Icon (aligned to right)
Responsive display: (width 100%)
Checkbox-Icon-Text
Icon-Icon-Icon-Icon-Icon (aligned to left under)
I've tested many config but I can't manage to do it well with the list-item component and checkboxes additional div and also md-secondary not allowing to stack under main list content.
Any help would be great.
Thanx.
The text was updated successfully, but these errors were encountered: