fix(app): keep Home session location labels at the row end (#62317)

This commit is contained in:
usrnk1
2026-11-06 11:06:29 +01:00
committed by GitHub
Unverified
parent a884e040c9
commit 47935cae0d
+5 -7
View File
@@ -578,7 +578,7 @@ function HomeSessionSearchResultRow(
role="option"
aria-selected={props.selected}
class={`
flex h-10 w-full shrink-0 cursor-default items-center border-0 py-3 pl-[18px] pr-6 text-left
flex h-10 w-full shrink-0 cursor-default items-center border-0 py-3 pl-[18px] pr-6 text-left text-v2-text-text-muted
transition-[background-color] duration-[120ms] ease-in-out
hover:bg-v2-overlay-simple-overlay-hover focus-visible:bg-v2-overlay-simple-overlay-hover focus-visible:outline-none
`}
@@ -607,7 +607,7 @@ function HomeSessionSearchResultRow(
<div data-slot="home-session-labels" class="flex min-w-0 flex-1 items-center gap-1.5">
<HomeSessionTitle title={title()} showProjectName={!!showProjectName()} search />
<Show when={showProjectName()}>
<HomeSessionProjectName name={props.record.projectName} trailing={props.desktop} search />
<HomeSessionProjectName name={props.record.projectName} search />
</Show>
<HomeSessionLocation
location={location()}
@@ -815,7 +815,7 @@ function HomeSessionRow(
>
<HomeSessionTitle title={title()} showProjectName={!!showProjectName()} />
<Show when={showProjectName()}>
<HomeSessionProjectName name={props.record.projectName} trailing={props.desktop} />
<HomeSessionProjectName name={props.record.projectName} />
</Show>
<HomeSessionLocation
location={location()}
@@ -952,15 +952,13 @@ function HomeSessionLocation(props: {
)
}
function HomeSessionProjectName(props: { name: string; search?: boolean; trailing?: boolean }) {
function HomeSessionProjectName(props: { name: string; search?: boolean }) {
return (
<span
data-component="home-session-project-name"
dir="auto"
class="min-w-0 overflow-hidden text-ellipsis whitespace-nowrap text-v2-text-text-muted [font-weight:440]"
class="min-w-0 flex-[1_1_auto] overflow-hidden text-ellipsis whitespace-nowrap text-v2-text-text-muted [font-weight:440]"
classList={{
"flex-[0_1_auto]": !!props.trailing,
"flex-[1_1_auto]": !props.trailing,
"text-[13px] leading-4 tracking-[-0.04px]": !!props.search,
}}
>