JetBrains / jewel

An implementation of the IntelliJ look and feels in Compose for Desktop
Apache License 2.0
636 stars 30 forks source link

MenuScope::separator doesn't seem to do anything #358

Closed juancnuno closed 2 months ago

juancnuno commented 2 months ago
    Dropdown(
      Modifier.padding(end = Padding.MEDIUM),
      menuContent = {
        Service.values().forEach {
          selectableItem(selectedService == it, onClick = { onSelectedServiceChange(it) }) {
            Text(it.toString())
          }
        }

        separator()

        selectableItem(selectedService == null, onClick = { onSelectedServiceChange(null) }) {
          Text("Show All")
        }
      },
    ) {
      Text(selectedService.toString())
    }

results in

Screenshot from 2024-04-17 12-49-47

I don't see a separator there

rock3r commented 2 months ago

I can't repro this in standalone:

image

This might be a bridge-only issue. Looking into it.