mirror of
https://github.com/discourse/discourse-solved.git
synced 2026-09-18 23:31:35 -04:00
UX: Integrate text with button to improve spacing
This commit is contained in:
@@ -96,9 +96,7 @@ function initializeWithApi(api, container) {
|
||||
title: "solved.accept_answer",
|
||||
className: "unaccepted",
|
||||
position,
|
||||
afterButton(h) {
|
||||
return h("span.unaccepted", I18n.t("solved.mark_as_solution"));
|
||||
}
|
||||
label: "solved.mark_as_solution"
|
||||
};
|
||||
} else if (attrs.accepted_answer) {
|
||||
return {
|
||||
@@ -107,9 +105,7 @@ function initializeWithApi(api, container) {
|
||||
title: "solved.accept_answer",
|
||||
className: "accepted",
|
||||
position: "first",
|
||||
afterButton(h) {
|
||||
return h("span.accepted", I18n.t("solved.solution"));
|
||||
}
|
||||
label: "solved.solution"
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user