improve custom search bar handling

This commit is contained in:
Send_Nukez 2021-11-27 00:44:15 +01:00
parent 6cc4b7d492
commit bcafa8b5a4
2 changed files with 2 additions and 1 deletions

View file

@ -67,6 +67,7 @@ Dribbblish.on("ready", () => {
defaultValue: true, defaultValue: true,
onChange: (val) => $("#main").attr("search-box", val ? "" : null), onChange: (val) => $("#main").attr("search-box", val ? "" : null),
onAppended: () => { onAppended: () => {
if ($("#dribbblish-search-box").length != 0) return;
const input = document.createElement("input"); const input = document.createElement("input");
input.id = "dribbblish-search-box"; input.id = "dribbblish-search-box";
input.type = "search"; input.type = "search";

View file

@ -84,7 +84,7 @@
display: block; display: block;
} }
[data-testid="search-input"] { .main-topBar-topbarContent form[role="search"] {
display: none; display: none;
} }
} }