mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-10-25 19:52:29 +00:00
style(client): keep the search rows on dev's glyph rail
The rebase onto dev landed both halves of #15643's row rail except in `WebSearch`, whose completed row had since moved its glyph into a shared `Button` and whose streaming row kept a 10px gap. Restore the shared `ROW_GLYPH_SLOT` around the completed row's favicon stack or globe and drop the streaming row's gap to 8px, so both search rows put their glyph on the avatar's axis and their text where the header's name starts.
This commit is contained in:
parent
a23e8828ae
commit
6e16282b5c
1 changed files with 8 additions and 6 deletions
|
|
@ -295,11 +295,13 @@ export default function WebSearch({
|
|||
: completedText
|
||||
}
|
||||
>
|
||||
{hasSourceData ? (
|
||||
<SourceFaviconStack sources={allSources} />
|
||||
) : (
|
||||
<Globe className="size-4 shrink-0 text-text-secondary" aria-hidden="true" />
|
||||
)}
|
||||
<span className={ROW_GLYPH_SLOT} aria-hidden="true">
|
||||
{hasSourceData ? (
|
||||
<SourceFaviconStack sources={allSources} />
|
||||
) : (
|
||||
<Globe className="size-4 shrink-0 text-text-secondary" />
|
||||
)}
|
||||
</span>
|
||||
<span className="min-w-0 truncate font-medium">{completedText}</span>
|
||||
{hasSourceData && (
|
||||
<ChevronDown
|
||||
|
|
@ -430,7 +432,7 @@ export default function WebSearch({
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="relative my-1 flex h-5 shrink-0 items-center gap-2.5">
|
||||
<div className="relative my-1 flex h-5 shrink-0 items-center gap-2">
|
||||
<span className="sr-only" aria-live="polite" aria-atomic="true">
|
||||
{genericProgressText}
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue