[#361] Improve search result page (#375)

* [#361] added back button

* [#361] greatly improved looks of results

* [#361] added popup on click

* [#361] removed classnames with \!important replaced with style in component

---------

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-12-02 15:26:00 +01:00
committed by GitHub
parent 8a68280023
commit 325d33caef
10 changed files with 328 additions and 90 deletions
+16 -4
View File
@@ -8,7 +8,6 @@ import {
IconButton,
InputAdornment,
InputLabel,
ListSubheader,
MenuItem,
Popover,
Select,
@@ -137,9 +136,17 @@ export default function SearchBar() {
{extended && (
<TextField
fullWidth
autoFocus
placeholder={t("common.search")}
value={search}
onBlur={() => {
onBlur={(e) => {
const next = e.relatedTarget as HTMLElement | null;
if (
next instanceof Node &&
searchBoxRef.current?.contains(next)
) {
return;
}
if (!search.trim()) {
setExtended(false);
}
@@ -184,7 +191,12 @@ export default function SearchBar() {
</InputAdornment>
{search && (
<InputAdornment position="end">
<IconButton onClick={() => setSearch("")}>
<IconButton
onClick={() => {
setSearch("");
handleFilterChange("keywords", "");
}}
>
<HighlightOffIcon />
</IconButton>
</InputAdornment>
@@ -335,7 +347,7 @@ export default function SearchBar() {
<UserSearch
attendees={filters.attendees}
setAttendees={(users: userAttendee[]) =>
handleFilterChange("participants", users)
handleFilterChange("attendees", users)
}
/>
</Box>