materializecss / materialize

Materialize, a web framework based on Material Design

Home Page:https://materializeweb.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Badge without margin-left in a collapsible

raphodn opened this issue · comments

Before submitting...

Context

Currently, badges are always pulled to the right in a collapsible.

It would be great to have an option (a class to add ?) to have it next to the text instead.

.collapsible span.badge {

Current Behavior

Example in a collapsible-header

image

<div class="collapsible-header">
    <i class="material-icons">chat_bubble_outline</i>Notes
    <span class="badge teal white-text">{{ member.notes | length }}</span>
</div>

Expected behavior

I added some extra style to have this behavior

Screenshot from 2023-09-01 12-24-55

<div class="collapsible-header">
    <i class="material-icons">chat_bubble_outline</i>Notes
    <span class="badge teal white-text" style="margin-left:14px;">{{ member.notes | length }}</span>
</div>

Possible Solutions or Causes

Not really sure what the ideal solution could be

  • maybe a left class that disables the margin-left: auto ?
  • or a right class that adds the margin-left: auto ?

Thanks 🙏

Your Environment

  • Version used: 1.2.2
  • Browser Name and version: Brave 1.57.47
  • Operating System and version (desktop or mobile): Ubuntu 22.04.03
  • Additional information you want to tell us: