UX: Make table builder edit button icon-only (#49)
This commit is contained in:
parent
5d7a126403
commit
eb164d881e
|
@ -16,16 +16,17 @@ export default apiInitializer("0.11.1", (api) => {
|
||||||
"open-popup-link",
|
"open-popup-link",
|
||||||
"btn-default",
|
"btn-default",
|
||||||
"btn",
|
"btn",
|
||||||
"btn-icon-text",
|
"btn-icon",
|
||||||
"btn-edit-table"
|
"btn-edit-table",
|
||||||
|
"no-text"
|
||||||
);
|
);
|
||||||
const editIcon = create(
|
const editIcon = create(
|
||||||
iconNode("pencil-alt", { class: "edit-table-icon" })
|
iconNode("pencil-alt", { class: "edit-table-icon" })
|
||||||
);
|
);
|
||||||
const openPopupText = document.createTextNode(
|
openPopupBtn.title = I18n.t(
|
||||||
I18n.t(themePrefix("discourse_table_builder.edit.btn_edit"))
|
themePrefix("discourse_table_builder.edit.btn_edit")
|
||||||
);
|
);
|
||||||
openPopupBtn.append(editIcon, openPopupText);
|
openPopupBtn.append(editIcon);
|
||||||
return openPopupBtn;
|
return openPopupBtn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue