fix(ui): wrap searchbar on small screens (#1973)
This commit is contained in:
parent
893e7093d8
commit
d2177a5267
3 changed files with 5 additions and 3 deletions
|
|
@ -23,11 +23,11 @@ const MainSearchBar = (props: Props) => {
|
|||
const originStr = window.env.ORIGIN || window.location.origin;
|
||||
const isSaas = /app\.openreplay\.com/.test(originStr);
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
<div style={{ width: '60%', marginRight: '10px' }}>
|
||||
<div className="flex items-center flex-wrap">
|
||||
<div style={{ flex: 3, marginRight: '10px' }}>
|
||||
{isSaas ? <AiSessionSearchField /> : <SessionSearchField />}
|
||||
</div>
|
||||
<div className="flex items-center gap-2" style={{ width: '40%' }}>
|
||||
<div className="flex items-center gap-2" style={{ flex: 2 }}>
|
||||
<TagList />
|
||||
<SavedSearch />
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ function SessionSearchField(props: Props) {
|
|||
onBlur={onBlur}
|
||||
onChange={onSearchChange}
|
||||
placeholder={'Search sessions using any captured event (click, input, page, error...)'}
|
||||
style={{ minWidth: 360 }}
|
||||
id="search"
|
||||
type="search"
|
||||
autoComplete="off"
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ function SessionSearchField(props: Props) {
|
|||
onBlur={() => setTimeout(setShowModal, 200, false)}
|
||||
onChange={onSearchChange}
|
||||
placeholder={'Search sessions using any captured event (click, input, page, error...)'}
|
||||
style={{ minWidth: 360 }}
|
||||
id="search"
|
||||
type="search"
|
||||
autoComplete="off"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue