mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +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,
|
||||
onChange: (val) => $("#main").attr("search-box", val ? "" : null),
|
||||
onAppended: () => {
|
||||
if ($("#dribbblish-search-box").length != 0) return;
|
||||
const input = document.createElement("input");
|
||||
input.id = "dribbblish-search-box";
|
||||
input.type = "search";
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
display: block;
|
||||
}
|
||||
|
||||
[data-testid="search-input"] {
|
||||
.main-topBar-topbarContent form[role="search"] {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue