UX: Make table builder edit button icon-only (#49)

This commit is contained in:
Keegan George 2023-03-24 13:23:08 -07:00 committed by GitHub
parent 5d7a126403
commit eb164d881e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -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;
}