Skip to content

Commit

Permalink
abbreviate tab name
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Nov 26, 2024
1 parent fd98608 commit 7e6cf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/desktop/src/components/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default function Tabs({ chats, selectedChatId, setSelectedChatId, setChat
{/* Adjusted padding on the left side and reduced margin for the close button */}
<div className="z-10 items-center justify-between w-full m-auto text-center truncate">
<span className="tab-type align-middle">
{chat.title}
{chat.title.length > 8 ? `${chat.title.slice(0, 7)}...` : chat.title}
{chats.length > 1 && (
<button
onClick={(e) => {
Expand Down

0 comments on commit 7e6cf01

Please sign in to comment.