mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-17 21:43:06 +00:00
🛶 style: Match CI Tailwind Formatting in Canary Sync
This commit is contained in:
parent
c4fbffb380
commit
b9b82d75cf
7 changed files with 17 additions and 22 deletions
|
|
@ -97,7 +97,7 @@ function BackgroundTasksButton({
|
|||
{activeCount > 0 && (
|
||||
<span
|
||||
aria-hidden="true"
|
||||
className="bg-status-info ring-presentation absolute -right-0.5 -top-0.5 size-2 animate-pulse rounded-full ring-2 motion-reduce:animate-none"
|
||||
className="bg-status-info ring-presentation absolute -top-0.5 -right-0.5 size-2 animate-pulse rounded-full ring-2 motion-reduce:animate-none"
|
||||
/>
|
||||
)}
|
||||
</Ariakit.PopoverDisclosure>
|
||||
|
|
@ -116,7 +116,7 @@ function BackgroundTasksButton({
|
|||
wide ? 'w-[36rem]' : 'w-80',
|
||||
)}
|
||||
>
|
||||
<div className="flex items-center gap-1 px-3 pb-2 pt-3">
|
||||
<div className="flex items-center gap-1 px-3 pt-3 pb-2">
|
||||
<Ariakit.PopoverHeading className="flex-1 text-sm font-semibold">
|
||||
{title}
|
||||
</Ariakit.PopoverHeading>
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ function TaskCard({
|
|||
aria-expanded={open}
|
||||
aria-controls={detailId}
|
||||
onClick={() => setOpen((value) => !value)}
|
||||
className="text-text-primary focus-visible:ring-ring-primary flex max-w-full items-start gap-1 rounded text-left text-sm focus-visible:outline-none focus-visible:ring-2"
|
||||
className="text-text-primary focus-visible:ring-ring-primary flex max-w-full items-start gap-1 rounded text-left text-sm focus-visible:ring-2 focus-visible:outline-none"
|
||||
>
|
||||
<span className="line-clamp-2 break-words">{title}</span>
|
||||
<ChevronDown
|
||||
|
|
@ -75,7 +75,7 @@ function TaskCard({
|
|||
/>
|
||||
</button>
|
||||
) : (
|
||||
<p className="text-text-primary line-clamp-2 break-words text-sm">{title}</p>
|
||||
<p className="text-text-primary line-clamp-2 text-sm break-words">{title}</p>
|
||||
)}
|
||||
<p className="text-text-secondary mt-0.5 flex items-center gap-2 text-xs">
|
||||
{title !== kindLabel && <span className="font-medium">{kindLabel}</span>}
|
||||
|
|
@ -105,7 +105,7 @@ function TaskCard({
|
|||
aria-label={`${stopLabel}: ${title}`}
|
||||
disabled={isStopping}
|
||||
onClick={() => onStop(row)}
|
||||
className="border-border-medium text-text-primary hover:bg-surface-hover focus-visible:ring-ring-primary flex size-7 shrink-0 items-center justify-center rounded-md border focus-visible:outline-none focus-visible:ring-2 disabled:opacity-50"
|
||||
className="border-border-medium text-text-primary hover:bg-surface-hover focus-visible:ring-ring-primary flex size-7 shrink-0 items-center justify-center rounded-md border focus-visible:ring-2 focus-visible:outline-none disabled:opacity-50"
|
||||
>
|
||||
<Square className="size-3" aria-hidden="true" />
|
||||
</button>
|
||||
|
|
@ -117,7 +117,7 @@ function TaskCard({
|
|||
{expandable && open && (
|
||||
<pre
|
||||
id={detailId}
|
||||
className="bg-surface-primary text-text-primary mt-2 max-h-48 overflow-auto whitespace-pre-wrap break-words rounded-md p-2 font-mono text-xs"
|
||||
className="bg-surface-primary text-text-primary mt-2 max-h-48 overflow-auto rounded-md p-2 font-mono text-xs break-words whitespace-pre-wrap"
|
||||
>
|
||||
{row.detail}
|
||||
</pre>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export default function Section({
|
|||
aria-expanded={open}
|
||||
aria-controls={listId}
|
||||
onClick={() => setOpen((value) => !value)}
|
||||
className="text-text-secondary hover:text-text-primary focus-visible:ring-ring-primary flex min-w-0 flex-1 items-center gap-1 rounded text-sm focus-visible:outline-none focus-visible:ring-2"
|
||||
className="text-text-secondary hover:text-text-primary focus-visible:ring-ring-primary flex min-w-0 flex-1 items-center gap-1 rounded text-sm focus-visible:ring-2 focus-visible:outline-none"
|
||||
>
|
||||
<span>{label}</span>
|
||||
<span className="tabular-nums">{count}</span>
|
||||
|
|
|
|||
|
|
@ -671,7 +671,7 @@ const ChatForm = memo(function ChatForm({
|
|||
data-testid="composer-context-rail"
|
||||
className={cn(
|
||||
'mx-4 -mb-3 flex min-w-0 flex-wrap items-center gap-1 rounded-t-2xl',
|
||||
'border-border-light bg-surface-secondary border px-2 pb-4 pt-1',
|
||||
'border-border-light bg-surface-secondary border px-2 pt-1 pb-4',
|
||||
isRTL && 'flex-row-reverse',
|
||||
)}
|
||||
>
|
||||
|
|
@ -724,7 +724,7 @@ const ChatForm = memo(function ChatForm({
|
|||
squared off at the bottom (`rounded-t-theme-surface-lg`) and no disclaimer
|
||||
follows it — so the action row is the last thing in it, with no
|
||||
band of padding under the buttons. */
|
||||
'relative flex w-full grow flex-col overflow-hidden rounded-t-theme-surface-lg sm:rounded-theme-surface-lg',
|
||||
'rounded-t-theme-surface-lg sm:rounded-theme-surface-lg relative flex w-full grow flex-col overflow-hidden',
|
||||
composerSurfaceClasses(),
|
||||
isTextAreaFocused ? composerSurfaceShadow.focused : composerSurfaceShadow.blurred,
|
||||
/* Temporary-chat accent is a ChatForm-only override, not part of
|
||||
|
|
@ -827,7 +827,7 @@ const ChatForm = memo(function ChatForm({
|
|||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-col items-start justify-start pr-2.5 pt-1.5">
|
||||
<div className="flex flex-col items-start justify-start pt-1.5 pr-2.5">
|
||||
<CollapseChat
|
||||
isCollapsed={isCollapsed}
|
||||
isScrollable={isMoreThanThreeRows}
|
||||
|
|
|
|||
|
|
@ -337,12 +337,12 @@ export default function CodeWorkspaceMenu({
|
|||
onClick={() => void refresh()}
|
||||
aria-label={`${label}. ${recovery}. ${localize('com_ui_retry')}`}
|
||||
aria-busy={isRefreshing}
|
||||
className={cn(composerControlClasses(), 'min-w-0 max-w-full px-2.5')}
|
||||
className={cn(composerControlClasses(), 'max-w-full min-w-0 px-2.5')}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<Icon className="text-text-secondary size-4 shrink-0" aria-hidden="true" />
|
||||
<span role="status" className="min-w-0 max-w-[16rem] truncate">
|
||||
<span role="status" className="max-w-[16rem] min-w-0 truncate">
|
||||
{label}
|
||||
</span>
|
||||
<RefreshCw className="text-text-secondary size-3 shrink-0" aria-hidden="true" />
|
||||
|
|
@ -374,7 +374,7 @@ export default function CodeWorkspaceMenu({
|
|||
}
|
||||
className={cn(
|
||||
composerControlClasses(),
|
||||
'min-w-0 max-w-full px-2.5 md:px-theme-normal',
|
||||
'md:px-theme-normal max-w-full min-w-0 px-2.5',
|
||||
isOpen && 'bg-surface-hover',
|
||||
buttonDisabled && 'cursor-not-allowed opacity-50',
|
||||
)}
|
||||
|
|
@ -382,7 +382,7 @@ export default function CodeWorkspaceMenu({
|
|||
}
|
||||
>
|
||||
<ButtonIcon className="text-text-secondary size-4 shrink-0" aria-hidden="true" />
|
||||
<span className="min-w-0 max-w-[12rem] truncate">{buttonLabel}</span>
|
||||
<span className="max-w-[12rem] min-w-0 truncate">{buttonLabel}</span>
|
||||
<ChevronDown
|
||||
className={cn(
|
||||
'text-text-secondary size-3 shrink-0 transition-transform',
|
||||
|
|
@ -396,7 +396,7 @@ export default function CodeWorkspaceMenu({
|
|||
gutter={8}
|
||||
unmountOnHide={true}
|
||||
className={cn(
|
||||
'z-50 flex min-w-[280px] max-w-[min(360px,calc(100vw-2rem))] flex-col rounded-xl',
|
||||
'z-50 flex max-w-[min(360px,calc(100vw-2rem))] min-w-[280px] flex-col rounded-xl',
|
||||
'border-border-light bg-presentation max-h-[var(--popover-available-height)] overflow-y-auto border p-1.5 shadow-lg',
|
||||
'origin-bottom opacity-0 transition-[opacity,transform] duration-200 ease-out',
|
||||
'data-[enter]:scale-100 data-[enter]:opacity-100',
|
||||
|
|
|
|||
|
|
@ -2391,11 +2391,6 @@
|
|||
"count": 2
|
||||
}
|
||||
},
|
||||
"packages/client/src/components/ControlCombobox.tsx": {
|
||||
"shadcn/no-inline-styles": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"packages/client/src/components/DataTable.tsx": {
|
||||
"shadcn/no-inline-styles": {
|
||||
"count": 6
|
||||
|
|
|
|||
|
|
@ -248,12 +248,12 @@ function ControlCombobox({
|
|||
>
|
||||
<div className="shrink-0 py-1.5">
|
||||
<div className="relative">
|
||||
<Search className="text-text-primary absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2" />
|
||||
<Search className="text-text-primary absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2" />
|
||||
<Ariakit.Combobox
|
||||
store={combobox}
|
||||
autoSelect
|
||||
placeholder={searchPlaceholder}
|
||||
className="bg-surface-secondary text-text-primary focus:outline-hidden w-full rounded-md py-2 pl-9 pr-3 text-sm"
|
||||
className="bg-surface-secondary text-text-primary w-full rounded-md py-2 pr-3 pl-9 text-sm focus:outline-hidden"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue