UX: use icon for create topic btn on mobile (#31237)

Updates the create topic button to be icon only (mobile) due to screen
space restrictions. The icon is also updated to make it easier to
understand what the button does, even when there is no text.
This commit is contained in:
David Battersby 2025-02-07 18:20:19 +04:00 committed by GitHub
parent dc86ebe97a
commit 891d8fe574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<:button>
<DButton
@action={{this.action}}
@icon="plus"
@icon="far-pen-to-square"
@disabled={{this.disabled}}
@label={{this.label}}
id="create-topic"

View File

@ -20,7 +20,9 @@ export default class DNavigation extends Component {
@setting("fixed_category_positions") fixedCategoryPositions;
createTopicLabel = "topic.create";
get createTopicLabel() {
return this.site.desktopView ? "topic.create" : "";
}
@dependentKeyCompat
get filterType() {