diff --git a/packages/frontend/core/src/mobile/components/navigation-back/index.tsx b/packages/frontend/core/src/mobile/components/navigation-back/index.tsx index 4fa7f53638..1df2751edc 100644 --- a/packages/frontend/core/src/mobile/components/navigation-back/index.tsx +++ b/packages/frontend/core/src/mobile/components/navigation-back/index.tsx @@ -19,6 +19,7 @@ export interface NavigationBackButtonProps extends IconButtonProps { export const NavigationBackButton = ({ icon, backAction, + children, style: propsStyle, ...otherProps }: NavigationBackButtonProps) => { @@ -42,6 +43,8 @@ export const NavigationBackButton = ({ const style = useMemo(() => ({ padding: 10, ...propsStyle }), [propsStyle]); + if (children) return children; + return ( { }; export const Component = () => { + const t = useI18n(); useThemeColorV2('layer/background/mobile/primary'); const searchInput = useLiveData(searchInput$); const searchService = useService(MobileSearchService); @@ -154,7 +158,6 @@ export const Component = () => { <>
- { onInput={onSearch} placeholder="Search Docs, Collections" /> + + +
{searchInput ? : } diff --git a/packages/frontend/core/src/mobile/views/search/style.css.ts b/packages/frontend/core/src/mobile/views/search/style.css.ts index d1628904a3..60537be184 100644 --- a/packages/frontend/core/src/mobile/views/search/style.css.ts +++ b/packages/frontend/core/src/mobile/views/search/style.css.ts @@ -1,13 +1,21 @@ -import { footnoteRegular, title3Regular } from '@toeverything/theme/typography'; +import { + bodyEmphasized, + footnoteRegular, + title3Regular, +} from '@toeverything/theme/typography'; import { cssVarV2 } from '@toeverything/theme/v2'; import { style } from '@vanilla-extract/css'; export const searchHeader = style({ padding: 16, - paddingLeft: 8, display: 'flex', alignItems: 'center', - gap: 4, + gap: 12, +}); +export const searchCancel = style({ + height: 44, + padding: '0px 4px', + color: cssVarV2.button.primary, }); export const searchInput = style({ width: 0, @@ -33,7 +41,7 @@ export const resBlock = style({ }, }); export const resBlockTitle = style([ - title3Regular, + bodyEmphasized, { padding: '0 16px', color: cssVarV2('text/primary'),