Skip to content

Commit

Permalink
Fix overflow of prompt library table (#2606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves authored Sep 30, 2024
1 parent b005690 commit 3e51149
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions web/src/app/admin/prompt-library/promptLibrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const PromptLibraryTable = ({
))}
</div>
</div>
<div className="mx-auto">
<div className="mx-auto overflow-x-auto">
<Table>
<TableHead>
<TableRow>
Expand All @@ -220,7 +220,16 @@ export const PromptLibraryTable = ({
.map((item) => (
<TableRow key={item.id}>
<TableCell>{item.prompt}</TableCell>
<TableCell>{item.content}</TableCell>
<TableCell
className="
max-w-xs
overflow-hidden
text-ellipsis
break-words
"
>
{item.content}
</TableCell>
<TableCell>{item.active ? "Active" : "Inactive"}</TableCell>
<TableCell>
<button
Expand Down

0 comments on commit 3e51149

Please sign in to comment.