Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

右侧栏:钉住的全局页签与任务页签同行排列

Dash1b9ef839d829
diff --git a/apps/desktop/src/renderer/features/right-sidebar/TabBar.tsx b/apps/desktop/src/renderer/features/right-sidebar/TabBar.tsx
index 6cd6ced4da..c3f86c800c 100644
--- a/apps/desktop/src/renderer/features/right-sidebar/TabBar.tsx
+++ b/apps/desktop/src/renderer/features/right-sidebar/TabBar.tsx
@@ -393,7 +393,11 @@ export function TabStrip({
chrome 风格),chip 用 items-center(与宿主栏其它控件同一中线)。 */}
<div
ref={tabsScrollRef}
- className="min-w-0 overflow-x-auto scrollbar-hide"
+ // 钉住的全局页签与可拖拽的任务页签列表并排在同一条横向滚动容器里。
+ className={cn(
+ 'flex min-w-0 gap-1 overflow-x-auto scrollbar-hide',
+ pillVariant === 'chip' ? 'items-center' : 'items-end',
+ )}
style={
{
WebkitAppRegion: 'no-drag',
@@ -409,7 +413,10 @@ export function TabStrip({
{pinnedTabs.length > 0 && (
<div
data-testid="right-sidebar-pinned-tabs"
- className={cn('flex w-max gap-1', pillVariant === 'chip' ? 'items-center' : 'items-end')}
+ className={cn(
+ 'flex w-max shrink-0 gap-1',
+ pillVariant === 'chip' ? 'items-center' : 'items-end',
+ )}
>
{pinnedTabs.map((tab) => (
<TabPill