fix(ui): wrap searchbar on small screens (#1973)

This commit is contained in:
Delirium 2024-03-18 16:39:03 +01:00 committed by GitHub
parent 893e7093d8
commit d2177a5267
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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"

View file

@ -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"