FIX: Make edit table button text not selectable (#29)

Making the text of the edit table button not selectable so that when post's contents are copied, the edit table label does not copy over as well.
This commit is contained in:
Keegan George 2022-10-12 09:49:54 -07:00 committed by GitHub
parent 55c80ed04f
commit 879140b8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -18,7 +18,8 @@ export default apiInitializer("0.11.1", (api) => {
"open-popup-link",
"btn-default",
"btn",
"btn-icon-text"
"btn-icon-text",
"btn-edit-table"
);
const editIcon = create(
iconNode("pencil-alt", { class: "edit-table-icon" })

View File

@ -2,3 +2,11 @@
display: inline;
margin-inline: 0.25em;
}
.btn-edit-table {
-webkit-user-select: none;
-webkit-touch-callout: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}