Skip to content

Commit

Permalink
fix: mettre le titre sur une seule ligne (#982)
Browse files Browse the repository at this point in the history
* fix: mettre le titre sur une seule ligne

* chore: clean

---------

Co-authored-by: Victor Zeinstra <[email protected]>
  • Loading branch information
Viczei and Victor Zeinstra authored Jul 25, 2023
1 parent 670f897 commit 452f67c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export const useContributionSearchCdtnReferencesQuery = (
): Result<Pick<CdtnReference, "document">> => {
const querySplit = query?.split(/[ -,]/);
const slugQuery = querySplit?.map(
(query) => `{slug: {_ilike: "%${query.normalize()}%"}}`
(text) => `{slug: {_ilike: "%${text.normalize()}%"}}`
).join(`,
`);
const titleQuery = querySplit?.map(
(query) => `{title: {_ilike: "%${query.normalize()}%"}}`
(text) => `{title: {_ilike: "%${text.normalize()}%"}}`
).join(`,
`);
const [{ data, fetching, error }] = useQuery<QueryResult>({
Expand Down
2 changes: 1 addition & 1 deletion targets/frontend/src/components/layout/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function UserMenu() {
setAnchorMenu(null);
};
return (
<div style={{ flexBasis: "100%" }}>
<div>
{user && (
<Stack
direction="row"
Expand Down
8 changes: 7 additions & 1 deletion targets/frontend/src/components/layout/auth.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ export function Layout({ children, title }: LayoutProps) {
ml: { sm: `${drawerWidth}px` },
}}
>
<Toolbar sx={{ height: headerHeight }}>
<Toolbar
sx={{
height: headerHeight,
display: "flex",
justifyContent: "space-between",
}}
>
<IconButton
aria-label="open drawer"
edge="start"
Expand Down

0 comments on commit 452f67c

Please sign in to comment.