fix: align archive all action in VS Code header
Moves the archive all sessions action to the right side of the header Keeps the sessions title focused on text only
This commit is contained in:
@@ -1,16 +1,10 @@
|
||||
import React from 'react';
|
||||
import { ArchiveAllDropdown } from '@/components/session/ArchiveAllDropdown';
|
||||
|
||||
interface SessionsTabTitleProps {
|
||||
title: string;
|
||||
onArchiveAll?: () => void;
|
||||
}
|
||||
|
||||
const SessionsTabTitle: React.FC<SessionsTabTitleProps> = ({ title, onArchiveAll }) => (
|
||||
<>
|
||||
<h1 className="text-sm font-medium truncate flex-1" title={title}>{title}</h1>
|
||||
{onArchiveAll && <ArchiveAllDropdown onArchiveAll={onArchiveAll} />}
|
||||
</>
|
||||
const SessionsTabTitle: React.FC<SessionsTabTitleProps> = ({ title }) => (
|
||||
<h1 className="text-sm font-medium truncate" title={title}>{title}</h1>
|
||||
);
|
||||
|
||||
export { SessionsTabTitle };
|
||||
|
||||
Reference in New Issue
Block a user