UX: Make table wrapper popup button icon only (#20820)

This commit is contained in:
Keegan George 2023-03-24 13:23:05 -07:00 committed by GitHub
parent e47af9bb72
commit c66323f964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,16 +141,15 @@ export default {
"open-popup-link", "open-popup-link",
"btn-default", "btn-default",
"btn", "btn",
"btn-icon-text", "btn-icon",
"btn-expand-table" "btn-expand-table",
"no-text"
); );
const expandIcon = create( const expandIcon = create(
iconNode("discourse-expand", { class: "expand-table-icon" }) iconNode("discourse-expand", { class: "expand-table-icon" })
); );
const openPopupText = document.createTextNode( openPopupBtn.title = I18n.t("fullscreen_table.expand_btn");
I18n.t("fullscreen_table.expand_btn") openPopupBtn.append(expandIcon);
);
openPopupBtn.append(expandIcon, openPopupText);
return openPopupBtn; return openPopupBtn;
} }