mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2025-06-29 20:02:13 +00:00
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",
|
||||
"btn-default",
|
||||
"btn",
|
||||
"btn-icon-text",
|
||||
"btn-edit-table"
|
||||
"btn-icon",
|
||||
"btn-edit-table",
|
||||
"no-text"
|
||||
);
|
||||
const editIcon = create(
|
||||
iconNode("pencil-alt", { class: "edit-table-icon" })
|
||||
);
|
||||
const openPopupText = document.createTextNode(
|
||||
I18n.t(themePrefix("discourse_table_builder.edit.btn_edit"))
|
||||
openPopupBtn.title = I18n.t(
|
||||
themePrefix("discourse_table_builder.edit.btn_edit")
|
||||
);
|
||||
openPopupBtn.append(editIcon, openPopupText);
|
||||
openPopupBtn.append(editIcon);
|
||||
return openPopupBtn;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user