mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-06 16:21:37 +00:00
improve custom search bar handling
This commit is contained in:
parent
6cc4b7d492
commit
bcafa8b5a4
2 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-testid="search-input"] {
|
.main-topBar-topbarContent form[role="search"] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue