Files
discourse/app/assets/stylesheets/common/components/admin-post-menu.scss
Jan Cernik 8dd883d4e5 DEV: Refactor topic admin menu to use <DMenu> (#26678)
* DEV: Refactor topic admin menu to use `<DMenu>`

This PR also introduces a new plugin API to add buttons to the topic admin menu

```javascript
api.addTopicAdminMenuButton((topic) => {
  return {
    action: () => {
      alert('Sunrise!');
    },
    icon: 'sun',
    className: 'sunrise-button',
    label: 'actions.rise',
  };
});
```

The plugins that needed to be updated are:

- [discourse-zoom](https://github.com/discourse/discourse-zoom/pull/73)
- [discourse-salesforce](https://github.com/discourse/discourse-salesforce/pull/74)
- [discourse-topic-noindex](https://github.com/discourse/discourse-topic-noindex/pull/11)
2024-04-29 12:44:38 -03:00

33 lines
468 B
SCSS

[data-content][data-identifier="admin-post-menu"] {
.d-modal__body {
padding: 0;
}
ul {
padding: 0.5rem;
margin: 0;
list-style: none;
li .btn {
width: 100%;
justify-content: flex-start;
}
li {
margin-bottom: 2px;
border: none;
&:last-child {
margin-bottom: 0;
}
}
.btn {
justify-content: left;
text-align: left;
width: 100%;
padding: 0.5em;
}
}
}