Skip to content

Commit

Permalink
refactor: truncate fiename
Browse files Browse the repository at this point in the history
  • Loading branch information
divyam234 committed Oct 13, 2024
1 parent 80bc7b7 commit 1a95849
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/components/file-tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { motion } from "framer-motion";
import { Button, Checkbox } from "@nextui-org/react";
import type { DebridTorrent, FileNode } from "@/types";
import { useSelectModalStore } from "@/ui/utils/store";
import { ForwardLink } from "./forward-link";
import { Icons } from "@/ui/utils/icons";
import { useQuery } from "@tanstack/react-query";
import { debridUnrestrictLinkOptions } from "@/ui/utils/queryOptions";
Expand Down Expand Up @@ -73,7 +72,7 @@ export function DebridTorrentItem({

return (
<li key={node.name}>
<span className="flex items-center gap-1.5 py-1 text-sm">
<span className="flex items-center gap-1.5 py-1">
<Checkbox
className="m-0 p-0"
isSelected={isSelected}
Expand Down Expand Up @@ -102,7 +101,9 @@ export function DebridTorrentItem({
{(!node.nodes || node.nodes.length === 0) && isSelected && status === "downloaded" && (
<UnRestrictButton link={node.link!} />
)}
{node.name}
<p title={node.name} className="text-sm truncate">
{node.name}
</p>
</span>

{isOpen && node.nodes && (
Expand Down

0 comments on commit 1a95849

Please sign in to comment.