fix(app): adjust home search and header layout (#33923)

This commit is contained in:
Brendan Allan 2026-06-26 00:19:20 +08:00 committed by GitHub
commit 69f75dff1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -957,7 +957,7 @@ function HomeSessionSearch(props: {
) )
return ( return (
<div class="mr-2 w-[calc(100%_-_8px)]"> <div class="w-full">
<div ref={root} data-component="home-session-search" class="relative z-10 w-full"> <div ref={root} data-component="home-session-search" class="relative z-10 w-full">
<Show when={props.open}> <Show when={props.open}>
<div <div
@ -1134,7 +1134,7 @@ function HomeSessionSearchResultRow(props: {
function HomeSessionGroupHeader(props: { title: string; onNewSession?: () => void }) { function HomeSessionGroupHeader(props: { title: string; onNewSession?: () => void }) {
const language = useLanguage() const language = useLanguage()
return ( return (
<div class="flex h-7 min-w-0 items-center justify-between pl-[18px] pr-2"> <div class="flex h-7 min-w-0 items-center justify-between pl-[18px]">
<div class={HOME_SECTION_LABEL}>{props.title}</div> <div class={HOME_SECTION_LABEL}>{props.title}</div>
<Show when={props.onNewSession}> <Show when={props.onNewSession}>
{(onNewSession) => ( {(onNewSession) => (