Skip to content

Commit

Permalink
fix search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Sep 26, 2023
1 parent 3d8f19e commit cc5fe5b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
.fsb {
position: absolute;
top: var(--bt-size-8);
right: 200px;
padding: var(--bt-size-4) 0 var(--bt-size-4) 0;
right: 150px;
padding: var(--bt-size-4);
border-radius: var(--bt-size-10);
z-index: var(--bt-z-index-dropdown);
display: flex;
align-items: center;
justify-content: center;
}

@media screen and (max-width: 550px) {
.fsb {
display: none;
}
}
12 changes: 10 additions & 2 deletions ui/src/components/Layouts/FloatingSearchBar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { Input } from "antd";
import { Input, theme } from "antd";
import style from "./FloatingSearchBar.module.scss";
import Icon from "components/General/Icon";
const FloatingSearchBar = () => {
const {
token: { colorBgContainer },
} = theme.useToken();
return (
<div className={style.fsb}>
<div
className={style.fsb}
style={{
backgroundColor: colorBgContainer,
}}
>
<Input
addonBefore={<Icon name="Search" />}
addonAfter={<>cmd + k</>}
Expand Down

0 comments on commit cc5fe5b

Please sign in to comment.